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

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

Issue 2646133002: Add offset contributed to sticky position box rect by location containers (Closed)
Patch Set: Add localToAncestorQuadInternal. Created 3 years, 11 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/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 785c2dfe6eb543fff71c48a62403d488505d505c..ae8d7805bd1f4b4606a4cebc8aae601315f7f79e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1226,6 +1226,13 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
const LayoutPoint& preOffset,
const LayoutPoint& postOffset) const;
+ // Convert a local quad into the coordinate system of container, not
+ // include transforms. See localToAncestorQuad for details.
+ FloatQuad localToAncestorQuadWithoutTransforms(
+ const FloatQuad&,
+ const LayoutBoxModelObject* ancestor,
+ MapCoordinatesFlags = 0) const;
+
// Return the transformation matrix to map points from local to the coordinate
// system of a container, taking transforms into account.
// Passing null for |ancestor| behaves the same as localToAncestorQuad.
@@ -2038,6 +2045,10 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
LayoutRect&,
const LayoutBoxModelObject& paintInvalidationContainer) const;
+ FloatQuad localToAncestorQuadInternal(const FloatQuad&,
+ const LayoutBoxModelObject* ancestor,
+ MapCoordinatesFlags = 0) const;
+
void clearLayoutRootIfNeeded() const;
bool isInert() const;

Powered by Google App Engine
This is Rietveld 408576698