| Index: Source/core/dom/Node.h
|
| diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
|
| index c13783f933cd4da5d294e512afe969c3a4efcff9..62320d69a0650b60d90be5fa5c2fd077f01de6e5 100644
|
| --- a/Source/core/dom/Node.h
|
| +++ b/Source/core/dom/Node.h
|
| @@ -263,18 +263,12 @@ public:
|
| virtual bool isCharacterDataNode() const { return false; }
|
| virtual bool isFrameOwnerElement() const { return false; }
|
| virtual bool isPluginElement() const { return false; }
|
| - virtual bool isInsertionPointNode() const { return false; }
|
|
|
| bool isDocumentNode() const;
|
| bool isTreeScope() const { return treeScope()->rootNode() == this; }
|
| bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); }
|
| bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); }
|
| - bool isInsertionPoint() const { return getFlag(NeedsShadowTreeWalkerFlag) && isInsertionPointNode(); }
|
| -
|
| - bool needsShadowTreeWalker() const;
|
| - bool needsShadowTreeWalkerSlow() const;
|
| - void setNeedsShadowTreeWalker() { setFlag(NeedsShadowTreeWalkerFlag); }
|
| - void resetNeedsShadowTreeWalker() { setFlag(needsShadowTreeWalkerSlow(), NeedsShadowTreeWalkerFlag); }
|
| + bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); }
|
|
|
| bool inNamedFlow() const { return getFlag(InNamedFlowFlag); }
|
| bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallbacksFlag); }
|
| @@ -735,7 +729,7 @@ private:
|
| HasScopedHTMLStyleChildFlag = 1 << 22,
|
| HasEventTargetDataFlag = 1 << 23,
|
| V8CollectableDuringMinorGCFlag = 1 << 24,
|
| - NeedsShadowTreeWalkerFlag = 1 << 25,
|
| + IsInsertionPointFlag = 1 << 25,
|
| IsInShadowTreeFlag = 1 << 26,
|
| IsCustomElement = 1 << 27,
|
|
|
| @@ -755,14 +749,14 @@ protected:
|
| CreateText = DefaultNodeFlags | IsTextFlag,
|
| CreateContainer = DefaultNodeFlags | IsContainerFlag,
|
| CreateElement = CreateContainer | IsElementFlag,
|
| - CreatePseudoElement = CreateElement | InDocumentFlag | NeedsShadowTreeWalkerFlag,
|
| - CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | NeedsShadowTreeWalkerFlag | IsInShadowTreeFlag,
|
| + CreatePseudoElement = CreateElement | InDocumentFlag,
|
| + CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadowTreeFlag,
|
| CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag,
|
| CreateStyledElement = CreateElement | IsStyledElementFlag,
|
| CreateHTMLElement = CreateStyledElement | IsHTMLFlag,
|
| CreateSVGElement = CreateStyledElement | IsSVGFlag,
|
| CreateDocument = CreateContainer | InDocumentFlag,
|
| - CreateInsertionPoint = CreateHTMLElement | NeedsShadowTreeWalkerFlag,
|
| + CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag,
|
| CreateEditingText = CreateText | HasNameOrIsEditingTextFlag,
|
| };
|
|
|
|
|