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

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

Issue 470633002: Rename repaint to paintInvalidation in rendering/style. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyle.cpp ('k') | Source/core/rendering/svg/RenderSVGRoot.cpp » ('j') | 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 22f10fbaaa6fb0de0994793d73769e5562ee9f4f..1d3e610ea4a1bfda53cf0220001923984fe2baac 100644
--- a/Source/core/rendering/style/StyleDifference.h
+++ b/Source/core/rendering/style/StyleDifference.h
@@ -16,37 +16,37 @@ public:
OpacityChanged = 1 << 1,
ZIndexChanged = 1 << 2,
FilterChanged = 1 << 3,
- // The object needs to be repainted if it contains text or properties dependent on color (e.g., border or outline).
+ // The object needs to issue paint invalidations if it contains text or properties dependent on color (e.g., border or outline).
TextOrColorChanged = 1 << 4,
};
StyleDifference()
- : m_repaintType(NoRepaint)
+ : m_paintInvalidationType(NoPaintInvalidation)
, m_layoutType(NoLayout)
, m_propertySpecificDifferences(0)
{ }
- bool hasDifference() const { return m_repaintType || m_layoutType || m_propertySpecificDifferences; }
+ bool hasDifference() const { return m_paintInvalidationType || m_layoutType || m_propertySpecificDifferences; }
bool hasAtMostPropertySpecificDifferences(unsigned propertyDifferences) const
{
- return !m_repaintType && !m_layoutType && !(m_propertySpecificDifferences & ~propertyDifferences);
+ return !m_paintInvalidationType && !m_layoutType && !(m_propertySpecificDifferences & ~propertyDifferences);
}
- bool needsRepaint() const { return m_repaintType != NoRepaint; }
- void clearNeedsRepaint() { m_repaintType = NoRepaint; }
+ bool needsPaintInvalidation() const { return m_paintInvalidationType != NoPaintInvalidation; }
+ void clearNeedsPaintInvalidation() { m_paintInvalidationType = NoPaintInvalidation; }
- // The object just needs to be repainted.
- bool needsRepaintObject() const { return m_repaintType == RepaintObject; }
- void setNeedsRepaintObject()
+ // The object just needs to issue paint invalidations.
+ bool needsPaintInvalidationObject() const { return m_paintInvalidationType == PaintInvalidationObject; }
+ void setNeedsPaintInvalidationObject()
{
- ASSERT(!needsRepaintLayer());
- m_repaintType = RepaintObject;
+ ASSERT(!needsPaintInvalidationLayer());
+ m_paintInvalidationType = PaintInvalidationObject;
}
- // The layer and its descendant layers need to be repainted.
- bool needsRepaintLayer() const { return m_repaintType == RepaintLayer; }
- void setNeedsRepaintLayer() { m_repaintType = RepaintLayer; }
+ // The layer and its descendant layers need to issue paint invalidations.
+ bool needsPaintInvalidationLayer() const { return m_paintInvalidationType == PaintInvalidationLayer; }
+ void setNeedsPaintInvalidationLayer() { m_paintInvalidationType = PaintInvalidationLayer; }
bool needsLayout() const { return m_layoutType != NoLayout; }
void clearNeedsLayout() { m_layoutType = NoLayout; }
@@ -78,12 +78,12 @@ public:
void setTextOrColorChanged() { m_propertySpecificDifferences |= TextOrColorChanged; }
private:
- enum RepaintType {
- NoRepaint = 0,
- RepaintObject,
- RepaintLayer
+ enum PaintInvalidationType {
+ NoPaintInvalidation = 0,
+ PaintInvalidationObject,
+ PaintInvalidationLayer
};
- unsigned m_repaintType : 2;
+ unsigned m_paintInvalidationType : 2;
enum LayoutType {
NoLayout = 0,
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyle.cpp ('k') | Source/core/rendering/svg/RenderSVGRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698