RESOLVED FIXED 106294
[Shadow DOM] Distribution related code on ElementShadow should be minimized.
https://bugs.webkit.org/show_bug.cgi?id=106294
Summary [Shadow DOM] Distribution related code on ElementShadow should be minimized.
Hajime Morrita
Reported 2013-01-07 20:42:27 PST
This is a dual of 106282. There are many projection related code in ElementShadow.cpp, which should be moved ContentDistributor or its family.
Attachments
Patch (26.71 KB, patch)
2013-01-08 23:50 PST, Hajime Morrita
no flags
Patch (30.76 KB, patch)
2013-01-09 01:21 PST, Hajime Morrita
no flags
Patch (37.09 KB, patch)
2013-01-09 02:24 PST, Hajime Morrita
no flags
Patch for landing (37.09 KB, patch)
2013-01-09 17:16 PST, Hajime Morrita
no flags
Patch for landing (37.09 KB, patch)
2013-01-09 18:06 PST, Hajime Morrita
no flags
Hajime Morrita
Comment 1 2013-01-08 23:50:10 PST
Build Bot
Comment 2 2013-01-08 23:55:34 PST
Build Bot
Comment 3 2013-01-09 00:31:45 PST
Hajime Morrita
Comment 4 2013-01-09 01:21:18 PST
Build Bot
Comment 5 2013-01-09 01:26:44 PST
kov's GTK+ EWS bot
Comment 6 2013-01-09 01:37:19 PST
Build Bot
Comment 7 2013-01-09 01:45:37 PST
Hajime Morrita
Comment 8 2013-01-09 02:24:32 PST
WebKit Review Bot
Comment 9 2013-01-09 03:16:28 PST
Comment on attachment 181882 [details] Patch Attachment 181882 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15762444 New failing tests: inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Dimitri Glazkov (Google)
Comment 10 2013-01-09 09:26:38 PST
Comment on attachment 181882 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=181882&action=review > Source/WebCore/dom/ElementShadow.h:69 > + void invalidateDistribution() { m_distributor.invalidateDistribution(host()); } > + void ensureDistribution() { m_distributor.ensureDistribution(host()); } > + void didAffectSelector(AffectedSelectorMask mask) { m_distributor.didAffectSelector(host(), mask); } > + void willAffectSelector() { m_distributor.willAffectSelector(host()); } I wonder if these plumb-throughs could be just eliminated?
Hajime Morrita
Comment 11 2013-01-09 15:38:42 PST
Comment on attachment 181882 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=181882&action=review Thanks for reviewing! I believe cr-linux redness came fron the tree itself but I'll check it before landing. >> Source/WebCore/dom/ElementShadow.h:69 >> + void willAffectSelector() { m_distributor.willAffectSelector(host()); } > > I wonder if these plumb-throughs could be just eliminated? I first tried that but the code then had strange duplication: shadow->distributor().invalidateDistribution(shadow->host()); So I gave it up.
Hajime Morrita
Comment 12 2013-01-09 17:16:11 PST
Created attachment 182023 [details] Patch for landing
WebKit Review Bot
Comment 13 2013-01-09 17:17:31 PST
Comment on attachment 182023 [details] Patch for landing Rejecting attachment 182023 [details] from commit-queue. Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', u'--status-host=queues.webkit.org', ..." exit_code: 2 cwd: /mnt/git/webkit-commit-queue Last 500 characters of output: file Source/WebCore/testing/Internals.cpp patching file Source/WebKit/win/WebKit.vcproj/WebKit.def.in Hunk #1 FAILED at 181. Hunk #2 FAILED at 570. Hunk #3 FAILED at 959. Hunk #4 FAILED at 1348. 4 out of 4 hunks FAILED -- saving rejects to file Source/WebKit/win/WebKit.vcproj/WebKit.def.in.rej patching file Source/autotools/symbols.filter patching file ChangeLog Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue Full output: http://queues.webkit.org/results/15758740
Hajime Morrita
Comment 14 2013-01-09 18:06:49 PST
Created attachment 182035 [details] Patch for landing
WebKit Review Bot
Comment 15 2013-01-09 18:31:00 PST
Comment on attachment 182035 [details] Patch for landing Clearing flags on attachment: 182035 Committed r139269: <http://trac.webkit.org/changeset/139269>
WebKit Review Bot
Comment 16 2013-01-09 18:31:05 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.