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

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

Issue 2250523003: Implement SANACLAP (http://bit.ly/sanaclap). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kill AnchorPoint Created 4 years, 4 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 6b4603096f60de5e25fea2efe592322e22b9552f..9e311d60bf7913ed730f99bfdf8b1bd579cca16d 100644
--- a/third_party/WebKit/Source/core/style/StyleDifference.h
+++ b/third_party/WebKit/Source/core/style/StyleDifference.h
@@ -21,6 +21,7 @@ public:
BackdropFilterChanged = 1 << 4,
// 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,
+ LayoutAffectingPropertyChanged = 1 << 6,
// If you add a value here, be sure to update the number of bits on m_propertySpecificDifferences.
};
@@ -88,6 +89,9 @@ public:
bool textDecorationOrColorChanged() const { return m_propertySpecificDifferences & TextDecorationOrColorChanged; }
void setTextDecorationOrColorChanged() { m_propertySpecificDifferences |= TextDecorationOrColorChanged; }
+ bool layoutAffectingPropertyChanged() const { return m_propertySpecificDifferences & LayoutAffectingPropertyChanged; }
+ void setLayoutAffectingPropertyChanged() { m_propertySpecificDifferences |= LayoutAffectingPropertyChanged; }
+
private:
enum PaintInvalidationType {
NoPaintInvalidation = 0,
@@ -103,7 +107,7 @@ private:
};
unsigned m_layoutType : 2;
unsigned m_recomputeOverflow : 1;
- unsigned m_propertySpecificDifferences : 6;
+ unsigned m_propertySpecificDifferences : 7;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698