Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Shadow DOM] Distribution related code on ShadowRoot should be minimi…
…zed. https://bugs.webkit.org/show_bug.cgi?id=106282 Reviewed by Dimitri Glazkov. .: * Source/autotools/symbols.filter: Source/WebCore: ShadowRoot had a certain amount of logic which is dedicated for node distribution computation. These code is going to be compiled out (Bug 103339) and better be part of the node distribution algorithm, which is ScopeContentDistribution class. This change - Renames ShadowRootContentDistributionData to ScopeContentDistribution. New name is concise and a bit more meaningful: It owns per TreeScope distribution state. - Moves distribution related code from ShadowRoot to ScopeContentDistribution No new tests. Refactoring. * WebCore.exp.in: * css/StyleScopeResolver.cpp: (WebCore::StyleScopeResolver::styleSharingCandidateMatchesHostRules): (WebCore::StyleScopeResolver::matchHostRules): * dom/ComposedShadowTreeWalker.cpp: (WebCore::nodeCanBeDistributed): (WebCore::ComposedShadowTreeWalker::traverseBackToYoungerShadowRoot): (WebCore::ComposedShadowTreeWalker::traverseParentBackToYoungerShadowRootOrHost): (WebCore::AncestorChainWalker::parent): * dom/ElementShadow.cpp: (WebCore::ElementShadow::collectSelectFeatureSetFrom): * dom/ShadowRoot.cpp: (WebCore::ShadowRoot::insertedInto): (WebCore::ShadowRoot::removedFrom): (WebCore::ShadowRoot::ensureScopeDistribution): (WebCore::ShadowRoot::reportMemoryUsage): * dom/ShadowRoot.h: (WebCore): (ShadowRoot): (WebCore::ShadowRoot::scopeDistribution): * html/shadow/ContentDistributor.cpp: (WebCore::ScopeContentDistribution::ScopeContentDistribution): (WebCore::ScopeContentDistribution::invalidateInsertionPointList): (WebCore::ScopeContentDistribution::ensureInsertionPointList): (WebCore::ScopeContentDistribution::registerInsertionPoint): (WebCore::ScopeContentDistribution::unregisterInsertionPoint): (WebCore::ScopeContentDistribution::hasShadowElement): (WebCore): (WebCore::ScopeContentDistribution::hasContentElement): (WebCore::ScopeContentDistribution::countElementShadow): (WebCore::ScopeContentDistribution::hasInsertionPoint): (WebCore::ScopeContentDistribution::assignedTo): (WebCore::ContentDistributor::distribute): (WebCore::ContentDistributor::invalidate): * html/shadow/ContentDistributor.h: (ScopeContentDistribution): (WebCore::ScopeContentDistribution::registerElementShadow): (WebCore::ScopeContentDistribution::unregisterElementShadow): (WebCore::ScopeContentDistribution::hasElementShadow): * html/shadow/HTMLShadowElement.cpp: (WebCore::HTMLShadowElement::olderShadowRoot): * html/shadow/InsertionPoint.cpp: (WebCore::InsertionPoint::insertedInto): (WebCore::InsertionPoint::removedFrom): (WebCore::InsertionPoint::contains): (WebCore): (WebCore::resolveReprojection): * html/shadow/InsertionPoint.h: (InsertionPoint): (WebCore): * testing/Internals.cpp: (WebCore::Internals::hasShadowInsertionPoint): (WebCore::Internals::hasContentElement): (WebCore::Internals::countElementShadow): Source/WebKit/win: * WebKit.vcproj/WebKit.def.in: Canonical link: https://commits.webkit.org/124579@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
17 changed files
with
250 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.