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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.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/paint/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 7f6b0f6a5c325f16557f2b4decb286c499b2eddb..8f2b791ec3162c24561aaefda0063be6ef630183 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -33,11 +33,12 @@ static LayoutRect slowMapToVisualRectInAncestorSpace(
}
LayoutRect result(rect);
- if (object.isLayoutView())
+ if (object.isLayoutView()) {
toLayoutView(object).mapToVisualRectInAncestorSpace(
&ancestor, result, InputIsInFrameCoordinates, DefaultVisualRectFlags);
- else
- object.mapToVisualRectInAncestorSpace(&ancestor, result);
+ }
+
+ object.mapToVisualRectInAncestorSpace(&ancestor, result);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698