Changeset 101208 in webkit
- Timestamp:
- Nov 27, 2011, 12:34:10 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
css/CSSMutableStyleDeclaration.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r101206 r101208 1 2011-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 1 13 2011-11-27 Andreas Kling <kling@webkit.org> 2 14 -
trunk/Source/WebCore/css/CSSMutableStyleDeclaration.cpp
r101172 r101208 895 895 void CSSMutableStyleDeclaration::setCssText(const String& text, ExceptionCode& ec) 896 896 { 897 ASSERT(!m_iteratorCount);898 899 #if ENABLE(MUTATION_OBSERVERS)900 StyleAttributeMutationScope mutationScope(this);901 #endif902 903 897 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 #endif911 912 898 // FIXME: Detect syntax errors and set ec. 913 setNeedsStyleRecalc();899 parseDeclaration(text); 914 900 } 915 901
Note:
See TracChangeset
for help on using the changeset viewer.