-
https://webkit.org/b/120017antti@apple.com authored
Reviewed by Andreas Kling. Remove this oddly factored type that is used to optionally collect some data during ComposedShadowTreeWalker parent traversal. Also removed support for reset-style-inheritance attribute in InsertionPoint. We don't use or expose it. * css/StyleResolver.cpp: (WebCore::StyleResolver::State::initForStyleResolve): (WebCore::StyleResolver::styleForElement): * css/StyleResolver.h: (WebCore::StyleResolver::State::State): (WebCore::StyleResolver::State::elementLinkState): Remove m_distributedToInsertionPoint State field. We never hit the cases where it was used. * dom/ComposedShadowTreeWalker.cpp: (WebCore::ComposedShadowTreeWalker::traverseSiblingOrBackToInsertionPoint): (WebCore::ComposedShadowTreeWalker::traverseNodeEscapingFallbackContents): (WebCore::ComposedShadowTreeWalker::traverseParent): Return null instead of setting childWasOutOfComposition to details object. That's what would happen anyway in the caller. (WebCore::ComposedShadowTreeWalker::traverseParentInCurrentTree): (WebCore::ComposedShadowTreeWalker::traverseParentBackToShadowRootOrHost): * dom/ComposedShadowTreeWalker.h: * dom/Node.cpp: (WebCore::Node::insertionParentForBinding): * dom/NodeRenderingContext.cpp: (WebCore::NodeRenderingContext::NodeRenderingContext): (WebCore::NodeRenderingContext::isOnEncapsulationBoundary): Make this look up InsertionPoint directly intead of relying it being populated in m_parentDetails. The function is used only in a few non-performance critical places. (WebCore::NodeRenderingContext::resetStyleInheritance): Return parent ShadowRoots resetStyleInheritance() flag instead of using m_parentDetails. * dom/NodeRenderingContext.h: * dom/NodeRenderingTraversal.cpp: (WebCore::NodeRenderingTraversal::parentSlow): * dom/NodeRenderingTraversal.h: (WebCore::NodeRenderingTraversal::parent): Remove ParentDetails. * html/HTMLAttributeNames.in: * html/shadow/InsertionPoint.cpp: Remove unused resetStyleInheritance attribute. (WebCore::InsertionPoint::removedFrom): (WebCore::findInsertionPointOf): Renamed for clarity. * html/shadow/InsertionPoint.h: * testing/Internals.cpp: (WebCore::Internals::includerFor): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
b4267a36