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

Changeset 101205 in webkit


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

Add assertions that CSSMappedAttributeDeclarations aren't using strict parsing.
<http://webkit.org/b/73167>

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

  • 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

    r101204 r101205  
     12011-11-27  Andreas Kling  <kling@webkit.org>
     2
     3        Add assertions that CSSMappedAttributeDeclarations aren't using strict parsing.
     4        <http://webkit.org/b/73167>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * dom/StyledElement.cpp:
     9        (WebCore::StyledElement::createMappedDecl):
     10        * html/HTMLTableElement.cpp:
     11        (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
     12        (WebCore::HTMLTableElement::addSharedCellBordersDecl):
     13        (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
     14        (WebCore::HTMLTableElement::addSharedGroupDecls):
     15
    1162011-11-27  Andreas Kling  <kling@webkit.org>
    217
  • trunk/Source/WebCore/dom/StyledElement.cpp

    r101175 r101205  
    408408    decl->setParentStyleSheet(document()->elementSheet());
    409409    decl->setElement(this);
     410    ASSERT(!decl->useStrictParsing());
    410411}
    411412
  • trunk/Source/WebCore/html/HTMLTableElement.cpp

    r101175 r101205  
    458458        decl->setParentStyleSheet(document()->elementSheet());
    459459        decl->setElement(this);
     460        ASSERT(!decl->useStrictParsing());
    460461       
    461462        int v = m_borderColorAttr ? CSSValueSolid : CSSValueOutset;
     
    515516        decl->setParentStyleSheet(document()->elementSheet());
    516517        decl->setElement(this);
     518        ASSERT(!decl->useStrictParsing());
    517519       
    518520        switch (borders) {
     
    573575            m_paddingDecl->setParentStyleSheet(document()->elementSheet());
    574576            m_paddingDecl->setElement(this);
     577            ASSERT(!m_paddingDecl->useStrictParsing());
    575578           
    576579            m_paddingDecl->setProperty(CSSPropertyPaddingTop, paddingValue, false);
     
    599602        decl->setParentStyleSheet(document()->elementSheet());
    600603        decl->setElement(this);
     604        ASSERT(!decl->useStrictParsing());
    601605       
    602606        if (rows) {
Note: See TracChangeset for help on using the changeset viewer.