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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.h

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/LayoutView.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.h b/third_party/WebKit/Source/core/layout/LayoutView.h
index 635088a1a92231c543b007785961d3b4285d1f7b..2674d8016f485c5e0a0060df6c0d36e940dc13d0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.h
+++ b/third_party/WebKit/Source/core/layout/LayoutView.h
@@ -114,16 +114,24 @@ class CORE_EXPORT LayoutView final : public LayoutBlockFlow {
FrameView* frameView() const { return m_frameView; }
- // |ancestor| can be nullptr, which will map the rect to the main frame's
- // space, even if the main frame is remote (or has intermediate remote
- // frames in the chain).
+ // See comments for the equivalent method on LayoutObject.
bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor,
LayoutRect&,
- MapCoordinatesFlags,
+ MapCoordinatesFlags mode,
VisualRectFlags) const;
- bool mapToVisualRectInAncestorSpace(
+
+ // |ancestor| can be nullptr, which will map the rect to the main frame's
+ // space, even if the main frame is remote (or has intermediate remote
+ // frames in the chain).
+ bool mapToVisualRectInAncestorSpaceInternal(
const LayoutBoxModelObject* ancestor,
- LayoutRect&,
+ TransformState&,
+ MapCoordinatesFlags,
+ VisualRectFlags) const;
+
+ bool mapToVisualRectInAncestorSpaceInternal(
+ const LayoutBoxModelObject* ancestor,
+ TransformState&,
VisualRectFlags = DefaultVisualRectFlags) const override;
LayoutSize offsetForFixedPosition(bool includePendingScroll = false) const;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698