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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2642193011: Unify all types of overflow-related clips for paint and hit testing. (Closed)
Patch Set: none 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/paint/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index a21f433b1aa4105a57fe8c3104bdbdd011cd6ca8..be6accb5f960368051ffd6ea1a55d3ca3cc0c56a 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -632,9 +632,7 @@ void PaintPropertyTreeBuilder::updateOverflowClip(
// those children. This is called control clip and we technically treat them
// like overflow clip.
LayoutRect clipRect;
- if (box.hasControlClip()) {
- clipRect = box.controlClipRect(context.current.paintOffset);
- } else if (box.shouldClipOverflow()) {
+ if (box.shouldClipOverflow()) {
clipRect = LayoutRect(pixelSnappedIntRect(
box.overflowClipRect(context.current.paintOffset)));
} else {

Powered by Google App Engine
This is Rietveld 408576698