Changeset 181434 in webkit


Ignore:
Timestamp:
Mar 11, 2015 11:37:53 PM (9 years ago)
Author:
Joseph Pecoraro
Message:

Unreviewed follow-up fix to r181426. Initialize TextPosition with zeros in case it gets used.

Address ASSERT in LayoutTests/printing/page-format-data.html.

  • dom/InlineStyleSheetOwner.cpp:

(WebCore::InlineStyleSheetOwner::InlineStyleSheetOwner):
In case the TextPosition gets used because it wasn't created by a parser,
zeros are more realistic values then beforeFirst.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181428 r181434  
     12015-03-11  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Unreviewed follow-up fix to r181426. Initialize TextPosition with zeros in case it gets used.
     4
     5        Address ASSERT in LayoutTests/printing/page-format-data.html.
     6
     7        * dom/InlineStyleSheetOwner.cpp:
     8        (WebCore::InlineStyleSheetOwner::InlineStyleSheetOwner):
     9        In case the TextPosition gets used because it wasn't created by a parser,
     10        zeros are more realistic values then beforeFirst.
     11
    1122015-03-11  Roger Fong  <roger_fong@apple.com>
    213
  • trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp

    r181426 r181434  
    3636    : m_isParsingChildren(createdByParser)
    3737    , m_loading(false)
    38     , m_startTextPosition(WTF::OrdinalNumber::beforeFirst(), WTF::OrdinalNumber::beforeFirst())
     38    , m_startTextPosition()
    3939{
    4040    if (createdByParser && document.scriptableDocumentParser() && !document.isInDocumentWrite())
Note: See TracChangeset for help on using the changeset viewer.