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

Unified Diff: Source/core/rendering/style/StyleDifference.h

Issue 561303002: Style changes to visual overflow do not require a layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 2 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 | « Source/core/rendering/style/RenderStyle.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/StyleDifference.h
diff --git a/Source/core/rendering/style/StyleDifference.h b/Source/core/rendering/style/StyleDifference.h
index 1d3e610ea4a1bfda53cf0220001923984fe2baac..7af431c315f97cd0e6395e5841a8e6e82fc45dca 100644
--- a/Source/core/rendering/style/StyleDifference.h
+++ b/Source/core/rendering/style/StyleDifference.h
@@ -18,6 +18,7 @@ public:
FilterChanged = 1 << 3,
// The object needs to issue paint invalidations if it contains text or properties dependent on color (e.g., border or outline).
TextOrColorChanged = 1 << 4,
+ VisualOverflowChanged = 1 << 5
};
StyleDifference()
@@ -77,6 +78,8 @@ public:
bool textOrColorChanged() const { return m_propertySpecificDifferences & TextOrColorChanged; }
void setTextOrColorChanged() { m_propertySpecificDifferences |= TextOrColorChanged; }
+ bool visualOverflowChanged() const { return m_propertySpecificDifferences & VisualOverflowChanged; }
+ void setVisualOverflowChanged() { m_propertySpecificDifferences |= VisualOverflowChanged; }
private:
enum PaintInvalidationType {
NoPaintInvalidation = 0,
@@ -92,7 +95,7 @@ private:
};
unsigned m_layoutType : 2;
- unsigned m_propertySpecificDifferences : 5;
+ unsigned m_propertySpecificDifferences : 6;
};
} // namespace blink
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698