summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/Node.h')
-rw-r--r--WebCore/dom/Node.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/dom/Node.h b/WebCore/dom/Node.h
index c7f07f1..603829b 100644
--- a/WebCore/dom/Node.h
+++ b/WebCore/dom/Node.h
@@ -310,8 +310,11 @@ public:
void setIsLink() { setFlag(IsLinkFlag); }
void clearIsLink() { clearFlag(IsLinkFlag); }
- void lazyAttach();
- virtual bool canLazyAttach() { return true; }
+ enum ShouldSetAttached {
+ SetAttached,
+ DoNotSetAttached
+ };
+ void lazyAttach(ShouldSetAttached = SetAttached);
virtual void setFocus(bool b = true);
virtual void setActive(bool f = true, bool /*pause*/ = false) { setFlag(f, IsActiveFlag); }
@@ -693,6 +696,9 @@ private:
void setStyleChange(StyleChangeType);
+ // Used to share code between lazyAttach and setNeedsStyleRecalc.
+ void markAncestorsWithChildNeedsStyleRecalc();
+
virtual void refEventTarget() { ref(); }
virtual void derefEventTarget() { deref(); }