⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 101208 in webkit


Ignore:
Timestamp:
Nov 27, 2011, 12:34:10 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

CSSMutableStyleDeclaration: setCssText() mostly duplicates parseDeclaration().
<http://webkit.org/b/73171>

Patch by Andreas Kling <kling@webkit.org> on 2011-11-27
Reviewed by Antti Koivisto.

Let setCssText() call parseDeclaration() instead of duplicating the functionality.

  • css/CSSMutableStyleDeclaration.cpp:

(WebCore::CSSMutableStyleDeclaration::setCssText):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101206 r101208  
     12011-11-27  Andreas Kling  <kling@webkit.org>
     2
     3        CSSMutableStyleDeclaration: setCssText() mostly duplicates parseDeclaration().
     4        <http://webkit.org/b/73171>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Let setCssText() call parseDeclaration() instead of duplicating the functionality.
     9
     10        * css/CSSMutableStyleDeclaration.cpp:
     11        (WebCore::CSSMutableStyleDeclaration::setCssText):
     12
    1132011-11-27  Andreas Kling  <kling@webkit.org>
    214
  • trunk/Source/WebCore/css/CSSMutableStyleDeclaration.cpp

    r101172 r101208  
    895895void CSSMutableStyleDeclaration::setCssText(const String& text, ExceptionCode& ec)
    896896{
    897     ASSERT(!m_iteratorCount);
    898 
    899 #if ENABLE(MUTATION_OBSERVERS)
    900     StyleAttributeMutationScope mutationScope(this);
    901 #endif
    902 
    903897    ec = 0;
    904     m_properties.clear();
    905     CSSParser parser(useStrictParsing());
    906     parser.parseDeclaration(this, text);
    907 
    908 #if ENABLE(MUTATION_OBSERVERS)
    909     mutationScope.enqueueMutationRecord();
    910 #endif
    911 
    912898    // FIXME: Detect syntax errors and set ec.
    913     setNeedsStyleRecalc();
     899    parseDeclaration(text);
    914900}
    915901
Note: See TracChangeset for help on using the changeset viewer.