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

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

Issue 2863933003: Remove the parameter of LayoutBox::XXXOverflowRectForPropagation() (Closed)
Patch Set: - Created 3 years, 7 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 79d3f0863ba9b76066b1475b22ff8bc80d4ba5ee..40e26824f282369ede0bc15a7dee0bd7d4446a62 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -1223,12 +1223,16 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
return ToLayoutSize(PhysicalLocation());
}
- LayoutRect LogicalVisualOverflowRectForPropagation(
- const ComputedStyle&) const;
- LayoutRect VisualOverflowRectForPropagation(const ComputedStyle&) const;
- LayoutRect LogicalLayoutOverflowRectForPropagation(
- const ComputedStyle&) const;
- LayoutRect LayoutOverflowRectForPropagation(const ComputedStyle&) const;
+ // Convert a local rect in this box's blocks direction into parent's blocks
+ // direction, for parent to accumulate layout or visual overflow.
+ LayoutRect RectForOverflowPropagation(const LayoutRect&) const;
+
+ LayoutRect LogicalVisualOverflowRectForPropagation() const;
+ LayoutRect VisualOverflowRectForPropagation() const {
+ return RectForOverflowPropagation(VisualOverflowRect());
+ }
+ LayoutRect LogicalLayoutOverflowRectForPropagation() const;
+ LayoutRect LayoutOverflowRectForPropagation() const;
bool HasOverflowModel() const { return overflow_.get(); }
bool HasSelfVisualOverflow() 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