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

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

Issue 2073563002: Rework mapToVisualRectInAncestorSpace to handle flipped blocks correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head. Created 4 years, 5 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 ca52d258eeabb66f7353e856939b932881e1c417..631a6a150e246bb2782e63120f5c84cdc5600211 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -873,9 +873,11 @@ public:
return;
rect.setX(m_frameRect.width() - rect.maxX());
}
- // These represent your location relative to your container as a physical offset.
- // In layout related methods you almost always want the logical location (e.g. x() and y()).
- LayoutPoint topLeftLocation() const;
+ // These represent your location relative to your container as a physical
+ // offset. In layout related methods you almost always want the logical
+ // location (e.g. x() and y()). Passing |container| causes flipped-block
+ // flipping w.r.t. that container, or containingBlock() otherwise.
+ LayoutPoint topLeftLocation(const LayoutBox* flippedBlocksContainer = nullptr) const;
LayoutSize topLeftLocationOffset() const { return toLayoutSize(topLeftLocation()); }
LayoutRect logicalVisualOverflowRectForPropagation(const ComputedStyle&) 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