Changeset 61987 in webkit


Ignore:
Timestamp:
Jun 28, 2010 1:47:01 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-28 Eric Seidel <eric@webkit.org>

Unreviewed. Attempt to fix Chromium and Qt builders.

Add a new baseclass for XML, HTML and Text DocumentParsers to clean up DocumentParser call sites
https://bugs.webkit.org/show_bug.cgi?id=41141

No functional changes, thus no tests.

  • bindings/v8/ScriptController.cpp: (WebCore::ScriptController::eventHandlerLineNumber): (WebCore::ScriptController::eventHandlerColumnNumber):
  • dom/XMLDocumentParserQt.cpp: (WebCore::XMLDocumentParser::XMLDocumentParser): (WebCore::XMLDocumentParser::stopParsing):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61986 r61987  
     12010-06-28  Eric Seidel  <eric@webkit.org>
     2
     3        Unreviewed.  Attempt to fix Chromium and Qt builders.
     4
     5        Add a new baseclass for XML, HTML and Text DocumentParsers to clean up DocumentParser call sites
     6        https://bugs.webkit.org/show_bug.cgi?id=41141
     7
     8        No functional changes, thus no tests.
     9
     10        * bindings/v8/ScriptController.cpp:
     11        (WebCore::ScriptController::eventHandlerLineNumber):
     12        (WebCore::ScriptController::eventHandlerColumnNumber):
     13        * dom/XMLDocumentParserQt.cpp:
     14        (WebCore::XMLDocumentParser::XMLDocumentParser):
     15        (WebCore::XMLDocumentParser::stopParsing):
     16
    1172010-06-28  Adam Barth  <abarth@webkit.org>
    218
  • trunk/WebCore/bindings/v8/ScriptController.cpp

    r61941 r61987  
    3535#include "PlatformBridge.h"
    3636#include "Document.h"
    37 #include "DocumentParser.h"
     37#include "ScriptableDocumentParser.h"
    3838#include "DOMWindow.h"
    3939#include "Event.h"
     
    252252int ScriptController::eventHandlerLineNumber() const
    253253{
    254     if (DocumentParser* parser = m_frame->document()->parser())
     254    ScriptableDocumentParser* parser = m_frame->document()->scriptableDocumentParser();
     255    if (parser)
    255256        return parser->lineNumber();
    256257    return 0;
     
    259260int ScriptController::eventHandlerColumnNumber() const
    260261{
    261     if (DocumentParser* parser = m_frame->document()->parser())
     262    ScriptableDocumentParser* parser = m_frame->document()->scriptableDocumentParser();
     263    if (parser)
    262264        return parser->columnNumber();
    263265    return 0;
  • trunk/WebCore/dom/XMLDocumentParserQt.cpp

    r61904 r61987  
    4545#include "ResourceRequest.h"
    4646#include "ResourceResponse.h"
     47#include "ScriptableDocumentParser.h"
    4748#include "ScriptController.h"
    4849#include "ScriptElement.h"
     
    7980
    8081XMLDocumentParser::XMLDocumentParser(Document* document, FrameView* frameView)
    81     : DocumentParser(document)
     82    : ScriptableDocumentParser(document)
    8283    , m_view(frameView)
    8384    , m_wroteText(false)
     
    106107
    107108XMLDocumentParser::XMLDocumentParser(DocumentFragment* fragment, Element* parentElement, FragmentScriptingPermission permission)
    108     : DocumentParser(fragment->document())
     109    : ScriptableDocumentParser(fragment->document())
    109110    , m_view(0)
    110111    , m_wroteText(false)
     
    229230void XMLDocumentParser::stopParsing()
    230231{
    231     DocumentParser::stopParsing();
     232    ScriptableDocumentParser::stopParsing();
    232233}
    233234
Note: See TracChangeset for help on using the changeset viewer.