Index: trunk/Source/core/dom/Node.h |
=================================================================== |
--- trunk/Source/core/dom/Node.h (revision 151673) |
+++ trunk/Source/core/dom/Node.h (working copy) |
@@ -392,8 +392,12 @@ |
bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuringMinorGCFlag); } |
void setV8CollectableDuringMinorGC(bool flag) { setFlag(flag, V8CollectableDuringMinorGCFlag); } |
- void lazyAttach(); |
- void lazyReattach(); |
+ enum ShouldSetAttached { |
+ SetAttached, |
+ DoNotSetAttached |
+ }; |
+ void lazyAttach(ShouldSetAttached = SetAttached); |
+ void lazyReattach(ShouldSetAttached = SetAttached); |
virtual void setFocus(bool flag); |
virtual void setActive(bool flag = true, bool pause = false); |
@@ -871,11 +875,11 @@ |
lazyReattach(); |
} |
-inline void Node::lazyReattach() |
+inline void Node::lazyReattach(ShouldSetAttached shouldSetAttached) |
{ |
if (attached()) |
detach(); |
- lazyAttach(); |
+ lazyAttach(shouldSetAttached); |
} |
// Need a template since ElementShadow is not a Node, but has the style recalc methods. |