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

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

Issue 2694903009: Remove un-used isClippedByCssClip (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/core/paint/ClipRect.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
index 96fe94dd115a0cc4288aa04e12de721f860e13bf..ec8885b0eed0c36f740b283418e2b169153383be 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
@@ -103,13 +103,11 @@ static void applyClipRects(const ClipRectsContext& context,
}
if (box.hasClip()) {
LayoutRect newClip = box.clipRect(offset);
- clipRects.setPosClipRect(
- intersection(newClip, clipRects.posClipRect()).setIsClippedByClipCss());
+ clipRects.setPosClipRect(intersection(newClip, clipRects.posClipRect()));
clipRects.setOverflowClipRect(
- intersection(newClip, clipRects.overflowClipRect())
- .setIsClippedByClipCss());
- clipRects.setFixedClipRect(intersection(newClip, clipRects.fixedClipRect())
- .setIsClippedByClipCss());
+ intersection(newClip, clipRects.overflowClipRect()));
+ clipRects.setFixedClipRect(
+ intersection(newClip, clipRects.fixedClipRect()));
}
}
@@ -384,9 +382,7 @@ void PaintLayerClipper::calculateRects(
// Clip applies to *us* as well, so go ahead and update the damageRect.
LayoutRect newPosClip = toLayoutBox(layoutObject).clipRect(offset);
backgroundRect.intersect(newPosClip);
- backgroundRect.setIsClippedByClipCss();
foregroundRect.intersect(newPosClip);
- foregroundRect.setIsClippedByClipCss();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/ClipRect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698