WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156468
Merge AttributedDOMTokenList into DOMTokenList
https://bugs.webkit.org/show_bug.cgi?id=156468
Summary
Merge AttributedDOMTokenList into DOMTokenList
Chris Dumez
Reported
2016-04-11 10:48:12 PDT
Merge AttributedDOMTokenList into AttributeTokenList to simplify the code. DOMTokenList is not constructible and AttributedDOMTokenList is its only constructible subclass.
Attachments
Patch
(24.52 KB, patch)
2016-04-11 10:51 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-04-11 10:51:02 PDT
Created
attachment 276157
[details]
Patch
Ryosuke Niwa
Comment 2
2016-04-11 10:57:36 PDT
Comment on
attachment 276157
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=276157&action=review
> Source/WebCore/html/DOMTokenList.cpp:203 > + // Do not reset the DOMTokenList value if the attribute value was changed by us.
Why don't we assert that m_element is non-null.
> Source/WebCore/html/DOMTokenList.cpp:212 > + m_cachedValue = nullAtom;
Ditto.
Chris Dumez
Comment 3
2016-04-11 10:58:55 PDT
Comment on
attachment 276157
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=276157&action=review
>> Source/WebCore/html/DOMTokenList.cpp:203 >> + // Do not reset the DOMTokenList value if the attribute value was changed by us. > > Why don't we assert that m_element is non-null.
because m_element is a reference?
Ryosuke Niwa
Comment 4
2016-04-11 11:12:05 PDT
Sorry, I meant to say attributeName.
Chris Dumez
Comment 5
2016-04-11 11:19:28 PDT
(In reply to
comment #4
)
> Sorry, I meant to say attributeName.
attributeName is passed to the constructor and is a QualifiedName, stored as m_attributeName.
Ryosuke Niwa
Comment 6
2016-04-11 11:47:43 PDT
Oh sorry, I misread your patch. I thought we had two constructors but we don't.
Chris Dumez
Comment 7
2016-04-11 11:49:06 PDT
Comment on
attachment 276157
[details]
Patch Clearing flags on attachment: 276157 Committed
r199298
: <
http://trac.webkit.org/changeset/199298
>
Chris Dumez
Comment 8
2016-04-11 11:49:09 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug