Don't synchronize attributes in reflect setters when we don't need to
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Mar 2014 10:48:48 +0000 (10:48 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Mar 2014 10:48:48 +0000 (10:48 +0000)
commit9db6684ec239b4e3854e6a74cad39b36cb75b9d2
treea008b9212a50ad7c42f2dcaf257aa824c56bdf25
parent85b6814b75b594940bbde6f536ab5cba0d0baf20
Don't synchronize attributes in reflect setters when we don't need to
https://bugs.webkit.org/show_bug.cgi?id=129662

Reviewed by Andreas Kling.

The vast majority of attributes don't need synchronization. Avoid calling synchronizeAttribute in setters
for those content attributes generated by "Reflect" keyword in IDL.

* bindings/scripts/CodeGenerator.pm:
(SetterExpression):
* dom/Element.cpp:
(WebCore::Element::setAttributeWithoutSynchronization): Added.
* dom/Element.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGenerator.pm
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/Element.h