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

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

Issue 2808613002: Apply container offset and scroll between transform and container perspective. (Closed)
Patch Set: none Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 26bc75568a1abc63ad0ecde58bbe045a0772e818..78cd43ba47fff7c7fe4a94db590cafe39267fd16 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -1257,6 +1257,22 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
TransformState::TransformAccumulation,
VisualRectFlags = kDefaultVisualRectFlags) const;
+ // Applies the box clip. This is like mapScrollingContentsRectToBoxSpace,
+ // except it does not apply scroll.
+ bool ApplyBoxClips(TransformState&,
+ TransformState::TransformAccumulation,
+ VisualRectFlags) const;
+
+ // Maps the visual rect state |transformState| from this box into its
+ // container, applying adjustments for the given container offset,
+ // scrolling, container clipping, and transform (including container
+ // perspective).
+ bool MapVisualRectToContainer(const LayoutObject* container_bject,
+ const LayoutPoint& container_offset,
+ const LayoutObject* ancestor,
+ VisualRectFlags,
+ TransformState&) const;
+
virtual bool HasRelativeLogicalWidth() const;
virtual bool HasRelativeLogicalHeight() const;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698