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

Changeset 145352 in webkit


Ignore:
Timestamp:
Mar 11, 2013, 3:36:21 AM (14 years ago)
Author:
hayato@chromium.org
Message:

Make sure that CSSSelector::setValue() is never called after parsing its pseudoType.
​https://bugs.webkit.org/show_bug.cgi?id=111957

Reviewed by Hajime Morrita.

It'd be nice to have an assertion here since
CSSSelector::pseudoType() will never parse a new value after it
parses a value and m_pseudoType is set to non-PseudoNotParsed.

No new tests (no change in behaviour).

  • css/CSSSelector.h:

(WebCore::CSSSelector::setValue):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r145349 r145352  
     12013-03-11  Hayato Ito  <hayato@chromium.org>
     2
     3        Make sure that CSSSelector::setValue() is never called after parsing its pseudoType.
     4        https://bugs.webkit.org/show_bug.cgi?id=111957
     5
     6        Reviewed by Hajime Morrita.
     7
     8        It'd be nice to have an assertion here since
     9        CSSSelector::pseudoType() will never parse a new value after it
     10        parses a value and m_pseudoType is set to non-PseudoNotParsed.
     11
     12        No new tests (no change in behaviour).
     13
     14        * css/CSSSelector.h:
     15        (WebCore::CSSSelector::setValue):
     16
    1172013-03-11  Takashi Sakamoto  <tasak@google.com>
    218
  • trunk/Source/WebCore/css/CSSSelector.h

    r142855 r145352  
    358358{
    359359    ASSERT(m_match != Tag);
     360    ASSERT(m_pseudoType == PseudoNotParsed);
    360361    // Need to do ref counting manually for the union.
    361362    if (m_hasRareData) {
Note: See TracChangeset for help on using the changeset viewer.