From d8fbaa8bda2ce9fd066cf62e15a8da69c8ca6b53 Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Tue, 2 Dec 2014 20:12:23 -0800 Subject: [PATCH] Remove PaintLayerPaintingChildClippingMaskPhase. It's never set. It was added in https://chromium.googlesource.com/chromium/blink/+/7176977ba5087a97ef38b1a88d0e450e924404ca%5E%21/#F21 The test cases from that patch seem to pass. Included one in this patch. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/772193004 --- .../canvas-rounded-corners-expected.txt | 24 +++++++++++++++++++ .../tests/clipping/canvas-rounded-corners.sky | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt create mode 100644 engine/src/flutter/tests/clipping/canvas-rounded-corners.sky diff --git a/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt b/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt new file mode 100644 index 0000000000..26195d243b --- /dev/null +++ b/engine/src/flutter/tests/clipping/canvas-rounded-corners-expected.txt @@ -0,0 +1,24 @@ +layer at (0,0) size 800x600 + RenderView {#document} at (0,0) size 800x600 +layer at (0,0) size 800x353 + RenderBlock {sky} at (0,0) size 800x353 + RenderBlock {h3} at (0,0) size 800x19 + RenderBlock (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 92x19 + text run at (0,0) width 92: "It passes if:" + RenderBlock {ul} at (0,19) size 800x57 + RenderBlock {li} at (0,0) size 800x19 + RenderBlock (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 511x19 + text run at (0,0) width 511: "the canvas content has rounded corners (top-left and top-right)" + RenderBlock {li} at (0,19) size 800x19 + RenderBlock (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 457x19 + text run at (0,0) width 457: "the 10px red border is visible around the canvas content" + RenderBlock {li} at (0,38) size 800x19 + RenderBlock (anonymous) at (0,0) size 800x19 + RenderText {#text} at (0,0) size 200x19 + text run at (0,0) width 200: "gray border is not visible" +layer at (0,76) size 277x277 + RenderHTMLCanvas {canvas} at (0,76) size 277x277 [bgcolor=#808080] [border: (10px solid #FF0000)] + diff --git a/engine/src/flutter/tests/clipping/canvas-rounded-corners.sky b/engine/src/flutter/tests/clipping/canvas-rounded-corners.sky new file mode 100644 index 0000000000..e7ea17c484 --- /dev/null +++ b/engine/src/flutter/tests/clipping/canvas-rounded-corners.sky @@ -0,0 +1,24 @@ + + + + +

It passes if:

+
    +
  • the canvas content has rounded corners (top-left and top-right)
  • +
  • the 10px red border is visible around the canvas content
  • +
  • gray border is not visible
  • +
+ + +