WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
129671
inSynchronizationOfLazyAttribute is making setAttributeInternal incomprehensible
https://bugs.webkit.org/show_bug.cgi?id=129671
Summary
inSynchronizationOfLazyAttribute is making setAttributeInternal incomprehensible
Ryosuke Niwa
Reported
2014-03-04 01:37:23 PST
inSynchronizationOfLazyAttribute is evaluated 4 times in various conditions even though all can just call ensureUniqueElementData().attributeAt(index).setValue(newValue) and exit early when it's true. Just do that so that the rest of code is more readable.
Attachments
Cleanup
(2.50 KB, patch)
2014-03-04 02:15 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2014-03-04 02:15:19 PST
Created
attachment 225764
[details]
Cleanup
Andreas Kling
Comment 2
2014-03-04 02:21:08 PST
Comment on
attachment 225764
[details]
Cleanup View in context:
https://bugs.webkit.org/attachment.cgi?id=225764&action=review
> Source/WebCore/dom/Element.cpp:1032 > + if (UNLIKELY(inSynchronizationOfLazyAttribute)) { > + ensureUniqueElementData().attributeAt(index).setValue(newValue); > + return; > + }
I think you have a bug here. If there is an Attr node, you will no longer reset its text children.
Ryosuke Niwa
Comment 3
2014-03-04 02:32:07 PST
Comment on
attachment 225764
[details]
Cleanup View in context:
https://bugs.webkit.org/attachment.cgi?id=225764&action=review
>> Source/WebCore/dom/Element.cpp:1032 >> + } > > I think you have a bug here. If there is an Attr node, you will no longer reset its text children.
It comes from
http://trac.webkit.org/changeset/139100
. I can add a comment if you'd like.
Ryosuke Niwa
Comment 4
2016-04-29 20:25:00 PDT
Comment on
attachment 225764
[details]
Cleanup Too old.
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