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

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

Issue 1452313004: Don't use cached subsequence when clip changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/PaintLayerClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
index 7bb1bae8ee63a317d586216baf13caabb48db6be..cee76d3d1ef7e4805c86f411c69cb42c5462b925 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
@@ -154,6 +154,7 @@ ClipRects* PaintLayerClipper::getClipRects(const ClipRectsContext& context) cons
void PaintLayerClipper::clearClipRectsIncludingDescendants()
chrishtr 2015/11/18 00:32:02 It looks like PaintLayer::updateLayerPositionsAfte
Xianzhu 2015/11/18 22:38:14 You are right. The latest patch checks actual cha
{
m_cache = nullptr;
+ m_layoutObject.layer()->setNeedsRepaint();
for (PaintLayer* layer = m_layoutObject.layer()->firstChild(); layer; layer = layer->nextSibling()) {
layer->clipper().clearClipRectsIncludingDescendants();
@@ -164,6 +165,7 @@ void PaintLayerClipper::clearClipRectsIncludingDescendants(ClipRectsCacheSlot ca
{
if (m_cache)
m_cache->clear(cacheSlot);
+ m_layoutObject.layer()->setNeedsRepaint();
for (PaintLayer* layer = m_layoutObject.layer()->firstChild(); layer; layer = layer->nextSibling()) {
layer->clipper().clearClipRectsIncludingDescendants(cacheSlot);

Powered by Google App Engine
This is Rietveld 408576698