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

Unified Diff: Source/core/dom/Node.h

Issue 143983007: Remove PostAttachCallbacks and replace with something more specialized (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update Created 6 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: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 5c8f56300378c73cc41d0c6efa960daf28176b84..35c5e9b5c462f973239096a968838f2b79b99660 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -93,13 +93,6 @@ enum StyleChangeType {
NeedsReattachStyleChange = 3 << nodeStyleChangeShift,
};
-// If the style change is from the renderer then we'll call setStyle on the
-// renderer even if the style computed from CSS is identical.
-enum StyleChangeSource {
- StyleChangeFromCSS,
- StyleChangeFromRenderer
-};
-
class NodeRareDataBase {
public:
RenderObject* renderer() const { return m_renderer; }
@@ -357,7 +350,7 @@ public:
void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); }
void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); }
- void setNeedsStyleRecalc(StyleChangeType, StyleChangeSource = StyleChangeFromCSS);
+ void setNeedsStyleRecalc(StyleChangeType);
void clearNeedsStyleRecalc();
bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistributionRecalc); }
@@ -375,7 +368,9 @@ public:
void recalcDistribution();
- bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(NotifyRendererWithIdenticalStyles); }
+ bool needsLayerUpdate() const { return getFlag(NeedsLayerUpdateFlag); }
+ void setNeedsLayerUpdate() { setFlag(NeedsLayerUpdateFlag); }
+ void clearNeedsLayerUpdate() { clearFlag(NeedsLayerUpdateFlag); }
void setIsLink(bool f);
@@ -712,7 +707,7 @@ private:
IsInsertionPointFlag = 1 << 24,
IsInShadowTreeFlag = 1 << 25,
- NotifyRendererWithIdenticalStyles = 1 << 26,
+ NeedsLayerUpdateFlag = 1 << 26,
CustomElement = 1 << 27,
CustomElementUpgraded = 1 << 28,

Powered by Google App Engine
This is Rietveld 408576698