WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
68519
Refactoring: Move m_inclusions from ShadowInclusionSelector to ShadowRoot
https://bugs.webkit.org/show_bug.cgi?id=68519
Summary
Refactoring: Move m_inclusions from ShadowInclusionSelector to ShadowRoot
Hajime Morrita
Reported
2011-09-21 03:40:18 PDT
This should de-emphasize ShadowInclusionSelector concept and hopefully make inclusion related code readable.
Attachments
Patch
(19.95 KB, patch)
2011-09-21 04:28 PDT
,
Hajime Morrita
dglazkov
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Hajime Morrita
Comment 1
2011-09-21 04:28:19 PDT
Created
attachment 108132
[details]
Patch
Dimitri Glazkov (Google)
Comment 2
2011-09-21 09:18:42 PDT
Comment on
attachment 108132
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=108132&action=review
I like the direction, but this patch is too large and it's difficult to grasp the exact nature of each change. Can we perhaps split it up and start with simple renames?
> Source/WebCore/ChangeLog:13 > + No one other than ShadowContentElement doesn't care about "selection" concept anymore.
that's a double negative. Did you mean to say "No one other than ShadowContentElement cares about ..."?
> Source/WebCore/dom/NodeRenderingContext.h:80 > AttachContentLight,
This guy needs a lot of clarifying too.
> Source/WebCore/dom/NodeRenderingContext.h:81 > + AttachContentIncluded,
The name sounds a bit better, but we still need explanation. Perhaps a comment above the enum to explain which phase means what?
> Source/WebCore/dom/ShadowInclusionSelector.cpp:127 > + Vector<RefPtr<Node> >* selectableNodes = m_scope->selectableNodes();
Handing out a pointer to a member like this looks scary. Can this logic be somehow encapsulated in ShadowInclusionScope?
> Source/WebCore/dom/ShadowRoot.cpp:162 > + if (!m_inclusions) > + return 0; > + return m_inclusions->find(node);
return m_inclusions ? m_inclusions->find(node) : 0;
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