Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp

Issue 2371933003: Fix paint invalidation for composited vertical-rl having overflow (Closed)
Patch Set: - Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index d61e401ef28ecdcfb032ea4fa85d80dd354f6b01..192eb2a5a59bb0180e93b1f43708b3f9b21e828f 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -418,11 +418,8 @@ static void slowMapToVisualRectInAncestorSpace(const LayoutObject& object, const
// TODO(wkorman): The flip below is required because visual rects are
// currently in "physical coordinates with flipped block-flow direction"
// (see LayoutBoxModelObject.h) but we need them to be in physical
- // coordinates. When we're mapping within exactly one object we keep the
- // input rect flipped because we'd just have to re-flip in short order, as
- // the output of this method must be in the "physical coordinates with
- // flipped block-flow direction.
- if (object.isBox() && object != ancestor)
chrishtr 2016/09/27 00:02:43 Is there an existing test that this is not needed
Xianzhu 2016/09/27 00:26:45 There seems no existing test. The added test paint
+ // coordinates.
+ if (object.isBox())
toLayoutBox(&object)->flipForWritingMode(rect);
if (object.isLayoutView())

Powered by Google App Engine
This is Rietveld 408576698