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

Changeset 101175 in webkit


Ignore:
Timestamp:
Nov 25, 2011, 8:46:42 AM (15 years ago)
Author:
andreas.kling@nokia.com
Message:

Remove redundant setStrictParsing(false) calls on CSSMappedAttributeDeclarations.
<http://webkit.org/b/73134>

Reviewed by Antti Koivisto.

CSSMappedAttributeDeclarations always use non-strict parsing since they use
the argument-less CSSMutableStyleDeclaration constructor.

  • dom/StyledElement.cpp:

(WebCore::StyledElement::createMappedDecl):

  • html/HTMLTableElement.cpp:

(WebCore::HTMLTableElement::additionalAttributeStyleDecls):
(WebCore::HTMLTableElement::addSharedCellBordersDecl):
(WebCore::HTMLTableElement::addSharedCellPaddingDecl):
(WebCore::HTMLTableElement::addSharedGroupDecls):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r101172 r101175  
     12011-11-25  Andreas Kling  <kling@webkit.org>
     2
     3        Remove redundant setStrictParsing(false) calls on CSSMappedAttributeDeclarations.
     4        <http://webkit.org/b/73134>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        CSSMappedAttributeDeclarations always use non-strict parsing since they use
     9        the argument-less CSSMutableStyleDeclaration constructor.
     10
     11        * dom/StyledElement.cpp:
     12        (WebCore::StyledElement::createMappedDecl):
     13        * html/HTMLTableElement.cpp:
     14        (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
     15        (WebCore::HTMLTableElement::addSharedCellBordersDecl):
     16        (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
     17        (WebCore::HTMLTableElement::addSharedGroupDecls):
     18
    1192011-11-25  Andreas Kling  <kling@webkit.org>
    220
  • trunk/Source/WebCore/dom/StyledElement.cpp

    r101172 r101175  
    408408    decl->setParentStyleSheet(document()->elementSheet());
    409409    decl->setElement(this);
    410     decl->setStrictParsing(false); // Mapped attributes are just always quirky.
    411410}
    412411
  • trunk/Source/WebCore/html/HTMLTableElement.cpp

    r101116 r101175  
    458458        decl->setParentStyleSheet(document()->elementSheet());
    459459        decl->setElement(this);
    460         decl->setStrictParsing(false); // Mapped attributes are just always quirky.
    461460       
    462461        int v = m_borderColorAttr ? CSSValueSolid : CSSValueOutset;
     
    516515        decl->setParentStyleSheet(document()->elementSheet());
    517516        decl->setElement(this);
    518         decl->setStrictParsing(false); // Mapped attributes are just always quirky.
    519517       
    520518        switch (borders) {
     
    575573            m_paddingDecl->setParentStyleSheet(document()->elementSheet());
    576574            m_paddingDecl->setElement(this);
    577             m_paddingDecl->setStrictParsing(false); // Mapped attributes are just always quirky.
    578575           
    579576            m_paddingDecl->setProperty(CSSPropertyPaddingTop, paddingValue, false);
     
    602599        decl->setParentStyleSheet(document()->elementSheet());
    603600        decl->setElement(this);
    604         decl->setStrictParsing(false); // Mapped attributes are just always quirky.
    605601       
    606602        if (rows) {
Note: See TracChangeset for help on using the changeset viewer.