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

Unified Diff: third_party/WebKit/Source/core/style/StyleDifference.h

Issue 1809643008: Adding or changing any of box-shadow, outline, or border-image-outset does not need a layout.. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 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
Index: third_party/WebKit/Source/core/style/StyleDifference.h
diff --git a/third_party/WebKit/Source/core/style/StyleDifference.h b/third_party/WebKit/Source/core/style/StyleDifference.h
index 360642f7a45780e0f369111b07e80fcb8d5ee213..c5447d2e48ac9d1073f1340aa371f876bdcb51f7 100644
--- a/third_party/WebKit/Source/core/style/StyleDifference.h
+++ b/third_party/WebKit/Source/core/style/StyleDifference.h
@@ -22,6 +22,7 @@ public:
// The object needs to issue paint invalidations if it is affected by text decorations or properties dependent on color (e.g., border or outline).
TextDecorationOrColorChanged = 1 << 5,
// If you add a value here, be sure to update the number of bits on m_propertySpecificDifferences.
+ VisualOverflowChanged = 1 << 6,
};
StyleDifference()
@@ -84,6 +85,9 @@ public:
bool textDecorationOrColorChanged() const { return m_propertySpecificDifferences & TextDecorationOrColorChanged; }
void setTextDecorationOrColorChanged() { m_propertySpecificDifferences |= TextDecorationOrColorChanged; }
+ bool visualOverflowChanged() const { return m_propertySpecificDifferences & VisualOverflowChanged; }
+ void setVisualOverflowChanged() { m_propertySpecificDifferences |= VisualOverflowChanged; }
Xianzhu 2016/03/23 20:28:26 I suggest to move this flag out of PropertyDiffere
+
private:
enum PaintInvalidationType {
NoPaintInvalidation = 0,
@@ -99,7 +103,7 @@ private:
};
unsigned m_layoutType : 2;
- unsigned m_propertySpecificDifferences : 6;
+ unsigned m_propertySpecificDifferences : 7;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698