Changeset 142029 in webkit


Ignore:
Timestamp:
Feb 6, 2013 1:49:48 PM (11 years ago)
Author:
tonyg@chromium.org
Message:

Fix CompactHTMLToken's copy ctor to copy all fields
https://bugs.webkit.org/show_bug.cgi?id=109076

Reviewed by Adam Barth.

This was introduced by me in r142004. Without this patch we fail all tests when using the background parser.

Also don't use getters in copy ctor.

No new tests because no new functionality.

  • html/parser/CompactHTMLToken.cpp:

(WebCore::CompactHTMLToken::CompactHTMLToken):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142028 r142029  
     12013-02-06  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Fix CompactHTMLToken's copy ctor to copy all fields
     4        https://bugs.webkit.org/show_bug.cgi?id=109076
     5
     6        Reviewed by Adam Barth.
     7
     8        This was introduced by me in r142004. Without this patch we fail all tests when using the background parser.
     9
     10        Also don't use getters in copy ctor.
     11
     12        No new tests because no new functionality.
     13
     14        * html/parser/CompactHTMLToken.cpp:
     15        (WebCore::CompactHTMLToken::CompactHTMLToken):
     16
    1172013-02-06  Brian Salomon  <bsalomon@google.com>
    218
  • trunk/Source/WebCore/html/parser/CompactHTMLToken.cpp

    r142004 r142029  
    9090
    9191CompactHTMLToken::CompactHTMLToken(const CompactHTMLToken& other)
    92     : m_type(other.type())
    93     , m_isAll8BitData(other.isAll8BitData())
    94     , m_doctypeForcesQuirks(other.doctypeForcesQuirks())
    95     , m_textPosition(other.textPosition())
     92    : m_type(other.m_type)
     93    , m_selfClosing(other.m_selfClosing)
     94    , m_isAll8BitData(other.m_isAll8BitData)
     95    , m_doctypeForcesQuirks(other.m_doctypeForcesQuirks)
     96    , m_data(other.m_data)
     97    , m_attributes(other.m_attributes)
     98    , m_textPosition(other.m_textPosition)
    9699{
    97     if (other.xssInfo())
    98         m_xssInfo = adoptPtr(new XSSInfo(*other.xssInfo()));
     100    if (other.m_xssInfo)
     101        m_xssInfo = adoptPtr(new XSSInfo(*other.m_xssInfo));
    99102}
    100103
Note: See TracChangeset for help on using the changeset viewer.