REGRESSION(r101172): It made fast/dom/clone-node-style.html assert.
authorkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2011 14:07:28 +0000 (14:07 +0000)
committerkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2011 14:07:28 +0000 (14:07 +0000)
commite4ea03f4474997ba3d63f5b159f83d9f711bafc9
tree865a6ec81e20a7644eef34bb8c2c9fd4718f6a98
parentf0f840f751434ad418e220c4c7934e9db80c46dd
REGRESSION(r101172): It made fast/dom/clone-node-style.html assert.
<http://webkit.org/b/73227>

Reviewed by Antti Koivisto.

Source/WebCore:

r101172 inadvertently introduced a default assignment operator for CSSElementStyleDeclaration
which caused StyledElement::copyNonAttributeProperties() to associate the element's inline
style declaration with the element being cloned.

Replace CSSMutableStyleDeclaration::operator= by copyPropertiesAndStrictnessFrom()
that matches the old behavior.

* css/CSSMutableStyleDeclaration.cpp:
(WebCore::CSSMutableStyleDeclaration::copyPropertiesAndStrictnessFrom):
* css/CSSMutableStyleDeclaration.h:
* dom/StyledElement.cpp:
(WebCore::StyledElement::copyNonAttributeProperties):

LayoutTests:

Unskip fast/dom/clone-node-style.html.

* platform/chromium/test_expectations.txt:
* platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101502 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/test_expectations.txt
LayoutTests/platform/qt/Skipped
Source/WebCore/ChangeLog
Source/WebCore/css/CSSMutableStyleDeclaration.cpp
Source/WebCore/css/CSSMutableStyleDeclaration.h
Source/WebCore/dom/StyledElement.cpp