StyledElement: Tidy up copyNonAttributeProperties().
authorkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2011 15:19:57 +0000 (15:19 +0000)
committerkling@webkit.org <kling@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2011 15:19:57 +0000 (15:19 +0000)
commit42fe1505ffd87c561893510b1404a325801864c9
tree0789385ed7f545d01bc857a419f935d72a0d0407
parent9aa7091e78ae15ed24b1f792a478e9c95ebcd452
StyledElement: Tidy up copyNonAttributeProperties().
<http://webkit.org/b/73501>

Reviewed by Antti Koivisto.

* css/CSSStyleDeclaration.h:

    Made CSSStyleDeclaration non-copyable.

* css/CSSMutableStyleDeclaration.h:
* css/CSSMutableStyleDeclaration.cpp:
(WebCore::CSSMutableStyleDeclaration::copyPropertiesFrom):

    copyPropertiesAndStrictnessFrom() redone as copyPropertiesFrom()
    since we can copy the strictness bit using existing accessors.

* dom/StyledElement.cpp:
(WebCore::StyledElement::copyNonAttributeProperties):

    Use copyPropertiesFrom() and copy the strictness bit to the new
    inline style using the dedicated accessors. Also added some
    assertions for good measure.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSMutableStyleDeclaration.cpp
Source/WebCore/css/CSSMutableStyleDeclaration.h
Source/WebCore/css/CSSStyleDeclaration.h
Source/WebCore/dom/StyledElement.cpp