diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-16 11:45:35 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-17 08:59:23 +0000 |
commit | 552906b0f222c5d5dd11b9fd73829d510980461a (patch) | |
tree | 3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc | |
parent | 1b05827804eaf047779b597718c03e7d38344261 (diff) | |
download | qtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz |
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc b/chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc index 661c7c33a8b..6aaa19c0b1d 100644 --- a/chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc +++ b/chromium/third_party/blink/renderer/core/paint/paint_layer_clipper_test.cc @@ -183,21 +183,12 @@ TEST_F(PaintLayerClipperTest, ControlClip) { .CalculateRects(context, &target_paint_layer->GetLayoutObject().FirstFragment(), nullptr, layer_bounds, background_rect, foreground_rect); -#if defined(OS_MACOSX) - // If the PaintLayer clips overflow, the background rect is intersected with - // the PaintLayer bounds... - EXPECT_EQ(PhysicalRect(3, 4, 210, 28), background_rect.Rect()); - // and the foreground rect is intersected with the control clip in this case. - EXPECT_EQ(PhysicalRect(8, 8, 200, 18), foreground_rect.Rect()); - EXPECT_EQ(PhysicalRect(8, 8, 200, 18), layer_bounds); -#else // If the PaintLayer clips overflow, the background rect is intersected with // the PaintLayer bounds... EXPECT_EQ(PhysicalRect(8, 8, 200, 300), background_rect.Rect()); // and the foreground rect is intersected with the control clip in this case. EXPECT_EQ(PhysicalRect(10, 10, 196, 296), foreground_rect.Rect()); EXPECT_EQ(PhysicalRect(8, 8, 200, 300), layer_bounds); -#endif } TEST_F(PaintLayerClipperTest, RoundedClip) { @@ -302,8 +293,8 @@ TEST_F(PaintLayerClipperTest, ControlClipSelect) { PhysicalRect content_box_rect = target->PhysicalContentBoxRect(); EXPECT_GT(foreground_rect.Rect().X(), content_box_rect.X() + target->Location().X()); - EXPECT_LT(foreground_rect.Rect().Width(), content_box_rect.Width()); -} // namespace blink + EXPECT_LE(foreground_rect.Rect().Width(), content_box_rect.Width()); +} TEST_F(PaintLayerClipperTest, LayoutSVGRootChild) { SetBodyInnerHTML(R"HTML( |