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

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

Issue 2751383003: Add 'WithoutGeometryChange' variants of paint invalidation flag setters (Closed)
Patch Set: - Created 3 years, 9 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/LayoutObject.h » ('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.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index da3c689eb279b90f9eaf8e78a50e8e219029dc6c..89fd2d55ca862fd8b6f4e7e78161f177f9810990 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1646,12 +1646,12 @@ void LayoutBox::imageChanged(WrappedImagePtr image, const IntRect*) {
styleRef().maskBoxImage().image()->data() == image) ||
(styleRef().boxReflect() && styleRef().boxReflect()->mask().image() &&
styleRef().boxReflect()->mask().image()->data() == image)) {
- setShouldDoFullPaintInvalidation();
+ setShouldDoFullPaintInvalidationWithoutGeometryChange();
} else {
for (const FillLayer* layer = &styleRef().maskLayers(); layer;
layer = layer->next()) {
if (layer->image() && image == layer->image()->data()) {
- setShouldDoFullPaintInvalidation();
+ setShouldDoFullPaintInvalidationWithoutGeometryChange();
break;
}
}
@@ -1669,7 +1669,7 @@ void LayoutBox::imageChanged(WrappedImagePtr image, const IntRect*) {
if (maybeAnimated) {
setMayNeedPaintInvalidationAnimatedBackgroundImage();
} else {
- setShouldDoFullPaintInvalidation();
+ setShouldDoFullPaintInvalidationWithoutGeometryChange();
setBackgroundChangedSinceLastPaintInvalidation();
}
break;
@@ -1750,8 +1750,10 @@ void LayoutBox::ensureIsReadyForPaintInvalidation() {
LayoutBoxModelObject::ensureIsReadyForPaintInvalidation();
if (mayNeedPaintInvalidationAnimatedBackgroundImage() &&
- !backgroundIsKnownToBeObscured())
- setShouldDoFullPaintInvalidation(PaintInvalidationDelayedFull);
+ !backgroundIsKnownToBeObscured()) {
+ setShouldDoFullPaintInvalidationWithoutGeometryChange(
+ PaintInvalidationDelayedFull);
+ }
if (fullPaintInvalidationReason() != PaintInvalidationDelayedFull ||
!intersectsVisibleViewport())
@@ -1763,7 +1765,8 @@ void LayoutBox::ensureIsReadyForPaintInvalidation() {
// Conservatively assume the delayed paint invalidation was caused by
// background image change.
setBackgroundChangedSinceLastPaintInvalidation();
- setShouldDoFullPaintInvalidation(PaintInvalidationFull);
+ setShouldDoFullPaintInvalidationWithoutGeometryChange(
+ PaintInvalidationFull);
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698