WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152831
Enable selector filtering for shadow trees
https://bugs.webkit.org/show_bug.cgi?id=152831
Summary
Enable selector filtering for shadow trees
Antti Koivisto
Reported
2016-01-07 06:51:50 PST
Selector filtering doesn't currently work in shadow trees making style resolve slow.
Attachments
patch
(28.92 KB, patch)
2016-01-07 07:36 PST
,
Antti Koivisto
simon.fraser
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews115 for mac-yosemite
(1.28 MB, application/zip)
2016-01-07 08:37 PST
,
Build Bot
no flags
Details
patch
(29.18 KB, patch)
2016-01-07 09:47 PST
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
patch
(29.85 KB, patch)
2016-01-07 10:14 PST
,
Antti Koivisto
simon.fraser
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2016-01-07 07:36:43 PST
Created
attachment 268451
[details]
patch
Build Bot
Comment 2
2016-01-07 08:37:40 PST
Comment on
attachment 268451
[details]
patch
Attachment 268451
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/662739
Number of test failures exceeded the failure limit.
Build Bot
Comment 3
2016-01-07 08:37:45 PST
Created
attachment 268453
[details]
Archive of layout-test-results from ews115 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-yosemite Platform: Mac OS X 10.10.5
Simon Fraser (smfr)
Comment 4
2016-01-07 09:10:21 PST
Comment on
attachment 268451
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=268451&action=review
> Source/WebCore/css/RuleSet.cpp:229 > + // FIXME: Custom pseudo elements are handled but the shadow tree's selector filter. It doesn't know about the main DOM. > + ruleData.disableSelectorFiltering();
The first part is not a complete sentence.
> Source/WebCore/css/SelectorFilter.cpp:57 > +bool SelectorFilter::parentStackIsConsistent(const ContainerNode* parentNode) const
Is it valid for parentNode to be null in this function?
> Source/WebCore/style/StyleTreeResolver.cpp:441 > + SelectorFilterParentPusher parentPusher(m_selectorFilter, slot); > + parentPusher.push();
In other stack-based classes like this, the constructor would push by default, unless some argument told it not to.
Antti Koivisto
Comment 5
2016-01-07 09:47:25 PST
Created
attachment 268459
[details]
patch
Antti Koivisto
Comment 6
2016-01-07 10:14:29 PST
Created
attachment 268463
[details]
patch
Antti Koivisto
Comment 7
2016-01-07 10:15:10 PST
> Is it valid for parentNode to be null in this function?
Seems so, in some edge cases. Debug bot failures were about that actually.
> In other stack-based classes like this, the constructor would push by > default, unless some argument told it not to.
Implemented this.
Antti Koivisto
Comment 8
2016-01-08 01:07:01 PST
https://trac.webkit.org/r194762
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug