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

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

Issue 2727093002: Account for perspective and preserve-3d in mapToVisualRectInAncestorSpace (Closed)
Patch Set: none Created 3 years, 10 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 a1a395249ffb86affc62651aae984b2faebcf49c..7b13835870d20bda9a7ea0a6d442b07b4ab1c584 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -499,11 +499,12 @@ static void slowMapToVisualRectInAncestorSpace(
if (object.isBox())
toLayoutBox(&object)->flipForWritingMode(rect);
- if (object.isLayoutView())
+ if (object.isLayoutView()) {
toLayoutView(object).mapToVisualRectInAncestorSpace(
&ancestor, rect, InputIsInFrameCoordinates, DefaultVisualRectFlags);
- else
+ } else {
object.mapToVisualRectInAncestorSpace(&ancestor, rect);
+ }
}
void PaintInvalidationState::mapLocalRectToPaintInvalidationContainer(
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698