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

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

Issue 2786463004: Paint backgrounds of a table section/row in one display item (Closed)
Patch Set: - 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
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 2d8b76547f427014d723e0cabd9fcb4e73367adf..a93fdd8585bd1c344f35380b8286b988ca9268f0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -4910,10 +4910,10 @@ LayoutRectOutsets LayoutBox::computeVisualEffectOverflowOutsets() {
}
DISABLE_CFI_PERF
-void LayoutBox::addOverflowFromChild(LayoutBox* child,
+void LayoutBox::addOverflowFromChild(const LayoutBox& child,
const LayoutSize& delta) {
// Never allow flow threads to propagate overflow up to a parent.
- if (child->isLayoutFlowThread())
+ if (child.isLayoutFlowThread())
return;
// Only propagate layout overflow from the child if the child isn't clipping
@@ -4921,7 +4921,7 @@ void LayoutBox::addOverflowFromChild(LayoutBox* child,
// care about it. layoutOverflowRectForPropagation takes care of this and just
// propagates the border box rect instead.
LayoutRect childLayoutOverflowRect =
- child->layoutOverflowRectForPropagation(styleRef());
+ child.layoutOverflowRectForPropagation(styleRef());
childLayoutOverflowRect.move(delta);
addLayoutOverflow(childLayoutOverflowRect);
@@ -4929,10 +4929,10 @@ void LayoutBox::addOverflowFromChild(LayoutBox* child,
// overflow, it may still have visual overflow of its own set from box shadows
// or reflections. It is unnecessary to propagate this overflow if we are
// clipping our own overflow.
- if (child->hasSelfPaintingLayer())
+ if (child.hasSelfPaintingLayer())
return;
LayoutRect childVisualOverflowRect =
- child->visualOverflowRectForPropagation(styleRef());
+ child.visualOverflowRectForPropagation(styleRef());
childVisualOverflowRect.move(delta);
addContentsVisualOverflow(childVisualOverflowRect);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698