Changeset 73975 in webkit


Ignore:
Timestamp:
Dec 13, 2010 3:20:55 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-13 Joone Hur <joone@kldp.org>

Reviewed by Eric Seidel.

WebKit fails to compile when building with WML support enabled
https://bugs.webkit.org/show_bug.cgi?id=42943

Use TextPosition instead of lineNumber() and columNumber().

No new tests are added, because this is just a build fix.

  • dom/XMLDocumentParser.h: Make lineNumber() private.
  • wml/WMLErrorHandling.cpp: (WebCore::reportWMLError): Use TextPosition instead of lineNumber() and columnNumber().
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r73973 r73975  
     12010-12-13  Joone Hur  <joone@kldp.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        WebKit fails to compile when building with WML support enabled
     6        https://bugs.webkit.org/show_bug.cgi?id=42943
     7
     8        Use TextPosition instead of lineNumber() and columNumber().
     9
     10        No new tests are added, because this is just a build fix.
     11
     12        * dom/XMLDocumentParser.h: Make lineNumber() private.
     13        * wml/WMLErrorHandling.cpp:
     14        (WebCore::reportWMLError): Use TextPosition instead of lineNumber() and columnNumber().
     15
    1162010-12-13  Chris Fleizach  <cfleizach@apple.com>
    217
  • trunk/WebCore/dom/XMLDocumentParser.h

    r71735 r73975  
    102102        // WMLErrorHandling uses these functions.
    103103        virtual bool wellFormed() const { return !m_sawError; }
    104         virtual int lineNumber() const;
    105104        TextPosition0 textPosition() const;
    106105
     
    119118        virtual void stopParsing();
    120119        virtual void detach();
     120        virtual int lineNumber() const;
     121        int columnNumber() const;
    121122
    122123        // from CachedResourceClient
     
    130131        bool appendFragmentSource(const String&);
    131132
    132         int columnNumber() const;
    133133
    134134        // This method is introduced to temporary legalize existing line/column
  • trunk/WebCore/wml/WMLErrorHandling.cpp

    r61104 r73975  
    4949            return;
    5050
    51         parser->handleError(XMLDocumentParser::fatal, errorMessage.latin1().data(), parser->lineNumber(), parser->columnNumber());
     51        parser->handleError(XMLDocumentParser::fatal, errorMessage.latin1().data(), parser->textPosition().m_line.zeroBasedInt(), parser->textPosition().m_column.zeroBasedInt());
    5252    } else {
    5353        Frame* frame = doc->frame();
Note: See TracChangeset for help on using the changeset viewer.