Changeset 61662 in webkit


Ignore:
Timestamp:
Jun 22, 2010 11:41:51 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-06-22 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Rename HTMLDocumentParser to LegacyHTMLDocumentParser
https://bugs.webkit.org/show_bug.cgi?id=41043

  • src/WebEntities.cpp:

2010-06-22 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Rename HTMLDocumentParser to LegacyHTMLDocumentParser
https://bugs.webkit.org/show_bug.cgi?id=41043

As requested by Darin Adler.

  • Android.mk:
  • CMakeLists.txt:
  • GNUmakefile.am:
  • WebCore.gypi:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • css/CSSStyleSheet.cpp: (WebCore::CSSStyleSheet::checkLoaded):
  • dom/Document.cpp: (WebCore::Document::write):
  • dom/DocumentFragment.cpp:
  • dom/DocumentParser.h: (WebCore::DocumentParser::asHTMLDocumentParser):
  • dom/XMLDocumentParserLibxml2.cpp:
  • dom/XMLDocumentParserQt.cpp:
  • html/HTML5Lexer.h: (WebCore::HTML5Lexer::columnNumber):
  • html/HTML5TreeBuilder.cpp:
  • html/HTMLDocument.cpp: (WebCore::HTMLDocument::createParser):
  • html/HTMLDocumentParser.cpp: Removed.
  • html/HTMLDocumentParser.h: Removed.
  • html/HTMLFormControlElement.cpp:
  • html/HTMLParserScheduler.cpp: (WebCore::parserChunkSize):
  • html/HTMLViewSourceDocument.cpp: (WebCore::HTMLViewSourceDocument::createParser): (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  • html/HTMLViewSourceDocument.h:
  • html/LegacyHTMLDocumentParser.cpp: Copied from WebCore/html/HTMLDocumentParser.cpp. (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser): (WebCore::LegacyHTMLDocumentParser::reset): (WebCore::LegacyHTMLDocumentParser::begin): (WebCore::LegacyHTMLDocumentParser::setForceSynchronous): (WebCore::LegacyHTMLDocumentParser::processListing): (WebCore::LegacyHTMLDocumentParser::parseNonHTMLText): (WebCore::LegacyHTMLDocumentParser::scriptHandler): (WebCore::LegacyHTMLDocumentParser::scriptExecution): (WebCore::LegacyHTMLDocumentParser::parseComment): (WebCore::LegacyHTMLDocumentParser::parseServer): (WebCore::LegacyHTMLDocumentParser::parseProcessingInstruction): (WebCore::LegacyHTMLDocumentParser::parseText): (WebCore::LegacyHTMLDocumentParser::parseEntity): (WebCore::LegacyHTMLDocumentParser::parseDoctype): (WebCore::LegacyHTMLDocumentParser::parseTag): (WebCore::LegacyHTMLDocumentParser::continueProcessing): (WebCore::LegacyHTMLDocumentParser::advance): (WebCore::LegacyHTMLDocumentParser::willWriteHTML): (WebCore::LegacyHTMLDocumentParser::didWriteHTML): (WebCore::LegacyHTMLDocumentParser::write): (WebCore::LegacyHTMLDocumentParser::stopParsing): (WebCore::LegacyHTMLDocumentParser::processingData): (WebCore::LegacyHTMLDocumentParser::timerFired): (WebCore::LegacyHTMLDocumentParser::end): (WebCore::LegacyHTMLDocumentParser::finish): (WebCore::LegacyHTMLDocumentParser::finishWasCalled): (WebCore::LegacyHTMLDocumentParser::processToken): (WebCore::LegacyHTMLDocumentParser::processDoctypeToken): (WebCore::LegacyHTMLDocumentParser::~LegacyHTMLDocumentParser): (WebCore::LegacyHTMLDocumentParser::enlargeBuffer): (WebCore::LegacyHTMLDocumentParser::enlargeScriptBuffer): (WebCore::LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets): (WebCore::LegacyHTMLDocumentParser::notifyFinished): (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsIfReady): (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsTimerFired): (WebCore::LegacyHTMLDocumentParser::continueExecutingExternalScripts): (WebCore::LegacyHTMLDocumentParser::isWaitingForScripts): (WebCore::LegacyHTMLDocumentParser::setSrc): (WebCore::parseLegacyHTMLDocumentFragment):
  • html/LegacyHTMLDocumentParser.h: Copied from WebCore/html/HTMLDocumentParser.h. (WebCore::LegacyHTMLDocumentParser::asHTMLDocumentParser):
  • html/LegacyHTMLTreeConstructor.cpp: (WebCore::LegacyHTMLTreeConstructor::reportErrorToConsole):
  • html/LegacyHTMLTreeConstructor.h:
  • loader/FTPDirectoryDocument.cpp: (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser): (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate): (WebCore::FTPDirectoryDocumentParser::finish):
  • page/XSSAuditor.h:

2010-06-22 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Rename HTMLDocumentParser to LegacyHTMLDocumentParser
https://bugs.webkit.org/show_bug.cgi?id=41043

Update the hash.

  • Scripts/do-webcore-rename:
Location:
trunk
Files:
29 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/Android.mk

    r61658 r61662  
    269269        html/HTMLParserScheduler.cpp \
    270270        html/HTMLTableRowsCollection.cpp \
    271         html/HTMLDocumentParser.cpp \
     271        html/LegacyHTMLDocumentParser.cpp \
    272272        html/HTMLViewSourceDocument.cpp \
    273273        html/ImageData.cpp \
  • trunk/WebCore/CMakeLists.txt

    r61658 r61662  
    994994    html/HTMLTextAreaElement.cpp
    995995    html/HTMLTitleElement.cpp
    996     html/HTMLDocumentParser.cpp
     996    html/LegacyHTMLDocumentParser.cpp
    997997    html/HTMLUListElement.cpp
    998998    html/HTMLViewSourceDocument.cpp
  • trunk/WebCore/ChangeLog

    r61661 r61662  
     12010-06-22  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Rename HTMLDocumentParser to LegacyHTMLDocumentParser
     6        https://bugs.webkit.org/show_bug.cgi?id=41043
     7
     8        As requested by Darin Adler.
     9
     10        * Android.mk:
     11        * CMakeLists.txt:
     12        * GNUmakefile.am:
     13        * WebCore.gypi:
     14        * WebCore.pro:
     15        * WebCore.vcproj/WebCore.vcproj:
     16        * WebCore.xcodeproj/project.pbxproj:
     17        * css/CSSStyleSheet.cpp:
     18        (WebCore::CSSStyleSheet::checkLoaded):
     19        * dom/Document.cpp:
     20        (WebCore::Document::write):
     21        * dom/DocumentFragment.cpp:
     22        * dom/DocumentParser.h:
     23        (WebCore::DocumentParser::asHTMLDocumentParser):
     24        * dom/XMLDocumentParserLibxml2.cpp:
     25        * dom/XMLDocumentParserQt.cpp:
     26        * html/HTML5Lexer.h:
     27        (WebCore::HTML5Lexer::columnNumber):
     28        * html/HTML5TreeBuilder.cpp:
     29        * html/HTMLDocument.cpp:
     30        (WebCore::HTMLDocument::createParser):
     31        * html/HTMLDocumentParser.cpp: Removed.
     32        * html/HTMLDocumentParser.h: Removed.
     33        * html/HTMLFormControlElement.cpp:
     34        * html/HTMLParserScheduler.cpp:
     35        (WebCore::parserChunkSize):
     36        * html/HTMLViewSourceDocument.cpp:
     37        (WebCore::HTMLViewSourceDocument::createParser):
     38        (WebCore::HTMLViewSourceDocument::addViewSourceToken):
     39        * html/HTMLViewSourceDocument.h:
     40        * html/LegacyHTMLDocumentParser.cpp: Copied from WebCore/html/HTMLDocumentParser.cpp.
     41        (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser):
     42        (WebCore::LegacyHTMLDocumentParser::reset):
     43        (WebCore::LegacyHTMLDocumentParser::begin):
     44        (WebCore::LegacyHTMLDocumentParser::setForceSynchronous):
     45        (WebCore::LegacyHTMLDocumentParser::processListing):
     46        (WebCore::LegacyHTMLDocumentParser::parseNonHTMLText):
     47        (WebCore::LegacyHTMLDocumentParser::scriptHandler):
     48        (WebCore::LegacyHTMLDocumentParser::scriptExecution):
     49        (WebCore::LegacyHTMLDocumentParser::parseComment):
     50        (WebCore::LegacyHTMLDocumentParser::parseServer):
     51        (WebCore::LegacyHTMLDocumentParser::parseProcessingInstruction):
     52        (WebCore::LegacyHTMLDocumentParser::parseText):
     53        (WebCore::LegacyHTMLDocumentParser::parseEntity):
     54        (WebCore::LegacyHTMLDocumentParser::parseDoctype):
     55        (WebCore::LegacyHTMLDocumentParser::parseTag):
     56        (WebCore::LegacyHTMLDocumentParser::continueProcessing):
     57        (WebCore::LegacyHTMLDocumentParser::advance):
     58        (WebCore::LegacyHTMLDocumentParser::willWriteHTML):
     59        (WebCore::LegacyHTMLDocumentParser::didWriteHTML):
     60        (WebCore::LegacyHTMLDocumentParser::write):
     61        (WebCore::LegacyHTMLDocumentParser::stopParsing):
     62        (WebCore::LegacyHTMLDocumentParser::processingData):
     63        (WebCore::LegacyHTMLDocumentParser::timerFired):
     64        (WebCore::LegacyHTMLDocumentParser::end):
     65        (WebCore::LegacyHTMLDocumentParser::finish):
     66        (WebCore::LegacyHTMLDocumentParser::finishWasCalled):
     67        (WebCore::LegacyHTMLDocumentParser::processToken):
     68        (WebCore::LegacyHTMLDocumentParser::processDoctypeToken):
     69        (WebCore::LegacyHTMLDocumentParser::~LegacyHTMLDocumentParser):
     70        (WebCore::LegacyHTMLDocumentParser::enlargeBuffer):
     71        (WebCore::LegacyHTMLDocumentParser::enlargeScriptBuffer):
     72        (WebCore::LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets):
     73        (WebCore::LegacyHTMLDocumentParser::notifyFinished):
     74        (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsIfReady):
     75        (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsTimerFired):
     76        (WebCore::LegacyHTMLDocumentParser::continueExecutingExternalScripts):
     77        (WebCore::LegacyHTMLDocumentParser::isWaitingForScripts):
     78        (WebCore::LegacyHTMLDocumentParser::setSrc):
     79        (WebCore::parseLegacyHTMLDocumentFragment):
     80        * html/LegacyHTMLDocumentParser.h: Copied from WebCore/html/HTMLDocumentParser.h.
     81        (WebCore::LegacyHTMLDocumentParser::asHTMLDocumentParser):
     82        * html/LegacyHTMLTreeConstructor.cpp:
     83        (WebCore::LegacyHTMLTreeConstructor::reportErrorToConsole):
     84        * html/LegacyHTMLTreeConstructor.h:
     85        * loader/FTPDirectoryDocument.cpp:
     86        (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser):
     87        (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
     88        (WebCore::FTPDirectoryDocumentParser::finish):
     89        * page/XSSAuditor.h:
     90
    1912010-06-22  Shinichiro Hamaji  <hamaji@chromium.org>
    292
  • trunk/WebCore/GNUmakefile.am

    r61658 r61662  
    12651265        WebCore/html/HTMLTitleElement.cpp \
    12661266        WebCore/html/HTMLTitleElement.h \
    1267         WebCore/html/HTMLDocumentParser.cpp \
    1268         WebCore/html/HTMLDocumentParser.h \
     1267        WebCore/html/LegacyHTMLDocumentParser.cpp \
     1268        WebCore/html/LegacyHTMLDocumentParser.h \
    12691269        WebCore/html/HTMLUListElement.cpp \
    12701270        WebCore/html/HTMLUListElement.h \
  • trunk/WebCore/WebCore.gypi

    r61658 r61662  
    16531653            'html/HTMLTitleElement.cpp',
    16541654            'html/HTMLTitleElement.h',
    1655             'html/HTMLDocumentParser.cpp',
    1656             'html/HTMLDocumentParser.h',
     1655            'html/LegacyHTMLDocumentParser.cpp',
     1656            'html/LegacyHTMLDocumentParser.h',
    16571657            'html/HTMLUListElement.cpp',
    16581658            'html/HTMLUListElement.h',
  • trunk/WebCore/WebCore.pro

    r61658 r61662  
    699699    html/HTMLTextAreaElement.cpp \
    700700    html/HTMLTitleElement.cpp \
    701     html/HTMLDocumentParser.cpp \
     701    html/LegacyHTMLDocumentParser.cpp \
    702702    html/HTMLUListElement.cpp \
    703703    html/HTMLViewSourceDocument.cpp \
     
    14381438    html/HTMLTextAreaElement.h \
    14391439    html/HTMLTitleElement.h \
    1440     html/HTMLDocumentParser.h \
     1440    html/LegacyHTMLDocumentParser.h \
    14411441    html/HTMLUListElement.h \
    14421442    html/HTMLVideoElement.h \
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r61661 r61662  
    3757837578                        </File>
    3757937579                        <File
    37580                                 RelativePath="..\html\HTMLDocumentParser.cpp"
    37581                                 >
    37582                         </File>
    37583                         <File
    37584                                 RelativePath="..\html\HTMLDocumentParser.h"
     37580                                RelativePath="..\html\LegacyHTMLDocumentParser.cpp"
     37581                                >
     37582                        </File>
     37583                        <File
     37584                                RelativePath="..\html\LegacyHTMLDocumentParser.h"
    3758537585                                >
    3758637586                        </File>
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r61658 r61662  
    24822482                93F198E608245E59001E9ABC /* HTMLElement.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D23F02DE4396018635CA /* HTMLElement.h */; settings = {ATTRIBUTES = (Private, ); }; };
    24832483                93F198EF08245E59001E9ABC /* LegacyHTMLTreeConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D25102DE4396018635CA /* LegacyHTMLTreeConstructor.h */; };
    2484                 93F198F008245E59001E9ABC /* HTMLDocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D25302DE4396018635CA /* HTMLDocumentParser.h */; };
     2484                93F198F008245E59001E9ABC /* LegacyHTMLDocumentParser.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D25302DE4396018635CA /* LegacyHTMLDocumentParser.h */; };
    24852485                93F198F608245E59001E9ABC /* TextResourceDecoder.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D27902DE43D7018635CA /* TextResourceDecoder.h */; settings = {ATTRIBUTES = (Private, ); }; };
    24862486                93F1991808245E59001E9ABC /* Range.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D30402DE4476018635CA /* Range.h */; settings = {ATTRIBUTES = (Private, ); }; };
     
    25122512                93F19A9208245E59001E9ABC /* HTMLElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D23E02DE4396018635CA /* HTMLElement.cpp */; };
    25132513                93F19A9B08245E59001E9ABC /* LegacyHTMLTreeConstructor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D25002DE4396018635CA /* LegacyHTMLTreeConstructor.cpp */; };
    2514                 93F19A9C08245E59001E9ABC /* HTMLDocumentParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D25202DE4396018635CA /* HTMLDocumentParser.cpp */; };
     2514                93F19A9C08245E59001E9ABC /* LegacyHTMLDocumentParser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D25202DE4396018635CA /* LegacyHTMLDocumentParser.cpp */; };
    25152515                93F19A9D08245E59001E9ABC /* TextResourceDecoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D27802DE43D7018635CA /* TextResourceDecoder.cpp */; };
    25162516                93F19AB908245E59001E9ABC /* Range.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D30302DE4476018635CA /* Range.cpp */; };
     
    1065710657                F523D25002DE4396018635CA /* LegacyHTMLTreeConstructor.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LegacyHTMLTreeConstructor.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    1065810658                F523D25102DE4396018635CA /* LegacyHTMLTreeConstructor.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = LegacyHTMLTreeConstructor.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    10659                 F523D25202DE4396018635CA /* HTMLDocumentParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLDocumentParser.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    10660                 F523D25302DE4396018635CA /* HTMLDocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDocumentParser.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
     10659                F523D25202DE4396018635CA /* LegacyHTMLDocumentParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LegacyHTMLDocumentParser.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
     10660                F523D25302DE4396018635CA /* LegacyHTMLDocumentParser.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = LegacyHTMLDocumentParser.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    1066110661                F523D27802DE43D7018635CA /* TextResourceDecoder.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextResourceDecoder.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    1066210662                F523D27902DE43D7018635CA /* TextResourceDecoder.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = TextResourceDecoder.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
     
    1355913559                                F523D23C02DE4396018635CA /* HTMLDocument.h */,
    1356013560                                1A494E290A12354300FDAFC1 /* HTMLDocument.idl */,
    13561                                 F523D25202DE4396018635CA /* HTMLDocumentParser.cpp */,
    13562                                 F523D25302DE4396018635CA /* HTMLDocumentParser.h */,
     13561                                F523D25202DE4396018635CA /* LegacyHTMLDocumentParser.cpp */,
     13562                                F523D25302DE4396018635CA /* LegacyHTMLDocumentParser.h */,
    1356313563                                F523D23E02DE4396018635CA /* HTMLElement.cpp */,
    1356413564                                F523D23F02DE4396018635CA /* HTMLElement.h */,
     
    1807618076                                A8EA79F70A1916DF00A8EF5F /* HTMLDListElement.h in Headers */,
    1807718077                                93F198E508245E59001E9ABC /* HTMLDocument.h in Headers */,
    18078                                 93F198F008245E59001E9ABC /* HTMLDocumentParser.h in Headers */,
     18078                                93F198F008245E59001E9ABC /* LegacyHTMLDocumentParser.h in Headers */,
    1807918079                                93309DE8099E64920056E581 /* htmlediting.h in Headers */,
    1808018080                                93F198E608245E59001E9ABC /* HTMLElement.h in Headers */,
     
    2041520415                                A8EA79F50A1916DF00A8EF5F /* HTMLDListElement.cpp in Sources */,
    2041620416                                93F19A9108245E59001E9ABC /* HTMLDocument.cpp in Sources */,
    20417                                 93F19A9C08245E59001E9ABC /* HTMLDocumentParser.cpp in Sources */,
     20417                                93F19A9C08245E59001E9ABC /* LegacyHTMLDocumentParser.cpp in Sources */,
    2041820418                                93309DE7099E64920056E581 /* htmlediting.cpp in Sources */,
    2041920419                                93F19A9208245E59001E9ABC /* HTMLElement.cpp in Sources */,
  • trunk/WebCore/css/CSSStyleSheet.cpp

    r61391 r61662  
    208208        parent()->checkLoaded();
    209209
    210     // Avoid |this| being deleted by scripts that run via HTMLDocumentParser::executeScriptsWaitingForStylesheets().
     210    // Avoid |this| being deleted by scripts that run via LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets().
    211211    // See <rdar://problem/6622300>.
    212212    RefPtr<CSSStyleSheet> protector(this);
  • trunk/WebCore/dom/Document.cpp

    r61357 r61662  
    8080#include "HTMLStyleElement.h"
    8181#include "HTMLTitleElement.h"
    82 #include "HTMLDocumentParser.h"
     82#include "LegacyHTMLDocumentParser.h"
    8383#include "HTTPParsers.h"
    8484#include "HistoryItem.h"
     
    19701970    // separate state for forceSynchronous.
    19711971    bool wasForcedSynchronous = false;
    1972     HTMLDocumentParser* parser = m_parser->asHTMLDocumentParser();
     1972    LegacyHTMLDocumentParser* parser = m_parser->asHTMLDocumentParser();
    19731973    if (parser) {
    19741974        wasForcedSynchronous = parser->forceSynchronous();
  • trunk/WebCore/dom/DocumentFragment.cpp

    r61637 r61662  
    2626#include "Document.h"
    2727#include "HTML5DocumentParser.h"
    28 #include "HTMLDocumentParser.h"
     28#include "LegacyHTMLDocumentParser.h"
    2929#include "Page.h"
    3030#include "Settings.h"
  • trunk/WebCore/dom/DocumentParser.h

    r61286 r61662  
    2727
    2828    class LegacyHTMLTreeConstructor;
    29     class HTMLDocumentParser;
     29    class LegacyHTMLDocumentParser;
    3030    class SegmentedString;
    3131    class XSSAuditor;
     
    4545        virtual void stopParsing() { m_parserStopped = true; }
    4646        // FIXME: processingData() is only used by DocumentLoader::isLoadingInAPISense
    47         // and is very unclear as to what it actually means.  Only HTMLDocumentParser
     47        // and is very unclear as to what it actually means.  Only LegacyHTMLDocumentParser
    4848        // actually implements it.
    4949        virtual bool processingData() const { return false; }
     
    6464
    6565        virtual LegacyHTMLTreeConstructor* htmlTreeConstructor() const { return 0; }
    66         virtual HTMLDocumentParser* asHTMLDocumentParser() { return 0; }
     66        virtual LegacyHTMLDocumentParser* asHTMLDocumentParser() { return 0; }
    6767
    6868        XSSAuditor* xssAuditor() const { return m_XSSAuditor; }
  • trunk/WebCore/dom/XMLDocumentParserLibxml2.cpp

    r61640 r61662  
    3939#include "HTMLLinkElement.h"
    4040#include "HTMLStyleElement.h"
    41 #include "HTMLDocumentParser.h" // for decodeNamedEntity
     41#include "LegacyHTMLDocumentParser.h" // for decodeNamedEntity
    4242#include "ProcessingInstruction.h"
    4343#include "ResourceError.h"
  • trunk/WebCore/dom/XMLDocumentParserQt.cpp

    r61104 r61662  
    3939#include "HTMLLinkElement.h"
    4040#include "HTMLStyleElement.h"
    41 #include "HTMLDocumentParser.h"
     41#include "LegacyHTMLDocumentParser.h"
    4242#include "ProcessingInstruction.h"
    4343#include "ResourceError.h"
  • trunk/WebCore/html/HTML5Lexer.h

    r61386 r61662  
    122122
    123123    int lineNumber() const { return m_lineNumber; }
    124     int columnNumber() const { return 1; } // Matches HTMLDocumentParser.h behavior.
     124    int columnNumber() const { return 1; } // Matches LegacyHTMLDocumentParser.h behavior.
    125125
    126126    State state() const { return m_state; }
  • trunk/WebCore/html/HTML5TreeBuilder.cpp

    r61637 r61662  
    3333#include "HTML5Token.h"
    3434#include "HTMLDocument.h"
    35 #include "HTMLDocumentParser.h"
     35#include "LegacyHTMLDocumentParser.h"
    3636#include "HTMLNames.h"
    3737#include "LegacyHTMLTreeConstructor.h"
  • trunk/WebCore/html/HTMLDocument.cpp

    r61104 r61662  
    6969#include "HTMLElementFactory.h"
    7070#include "HTMLNames.h"
    71 #include "HTMLDocumentParser.h"
     71#include "LegacyHTMLDocumentParser.h"
    7272#include "InspectorController.h"
    7373#include "KURL.h"
     
    295295        return new HTML5DocumentParser(this, reportErrors);
    296296
    297     return new HTMLDocumentParser(this, reportErrors);
     297    return new LegacyHTMLDocumentParser(this, reportErrors);
    298298}
    299299
  • trunk/WebCore/html/HTMLFormControlElement.cpp

    r61322 r61662  
    4040#include "HTMLNames.h"
    4141#include "LegacyHTMLTreeConstructor.h"
    42 #include "HTMLDocumentParser.h"
     42#include "LegacyHTMLDocumentParser.h"
    4343#include "LabelsNodeList.h"
    4444#include "Page.h"
  • trunk/WebCore/html/HTMLParserScheduler.cpp

    r61658 r61662  
    5555    // FIXME: We may need to divide the value from customHTMLTokenizerChunkSize
    5656    // by some constant to translate from the "character" based behavior of the
    57     // old HTMLDocumentParser to the token-based behavior of this parser.
     57    // old LegacyHTMLDocumentParser to the token-based behavior of this parser.
    5858    if (page && page->hasCustomHTMLTokenizerChunkSize())
    5959        return page->customHTMLTokenizerChunkSize();
  • trunk/WebCore/html/HTMLViewSourceDocument.cpp

    r61104 r61662  
    3737#include "HTMLTableRowElement.h"
    3838#include "HTMLTableSectionElement.h"
    39 #include "HTMLDocumentParser.h"
     39#include "LegacyHTMLDocumentParser.h"
    4040#include "Text.h"
    4141#include "TextDocument.h"
     
    5454DocumentParser* HTMLViewSourceDocument::createParser()
    5555{
    56     // Use HTMLDocumentParser if applicable, otherwise use TextDocumentParser.
     56    // Use LegacyHTMLDocumentParser if applicable, otherwise use TextDocumentParser.
    5757    if (m_type == "text/html" || m_type == "application/xhtml+xml" || m_type == "image/svg+xml" || DOMImplementation::isXMLMIMEType(m_type)
    5858#if ENABLE(XHTMLMP)
     
    6161        ) {
    6262        // FIXME: Should respect Settings::html5ParserEnabled()
    63         return new HTMLDocumentParser(this);
     63        return new LegacyHTMLDocumentParser(this);
    6464    }
    6565
     
    158158                            const String& value = attr->value().string();
    159159
    160                             // Compare ignoring case since HTMLDocumentParser doesn't
     160                            // Compare ignoring case since LegacyHTMLDocumentParser doesn't
    161161                            // lower names when passing in tokens to
    162162                            // HTMLViewSourceDocument.
  • trunk/WebCore/html/HTMLViewSourceDocument.h

    r61104 r61662  
    4343    }
    4444
    45     void addViewSourceToken(Token*); // Used by the HTMLDocumentParser.
     45    void addViewSourceToken(Token*); // Used by the LegacyHTMLDocumentParser.
    4646    void addViewSourceText(const String&); // Used by the TextDocumentParser.
    4747    void addViewSourceDoctypeToken(DoctypeToken*);
     
    5050    HTMLViewSourceDocument(Frame*, const String& mimeType);
    5151
    52     // Returns HTMLDocumentParser or TextDocumentParser based on m_type.
     52    // Returns LegacyHTMLDocumentParser or TextDocumentParser based on m_type.
    5353    virtual DocumentParser* createParser();
    5454
  • trunk/WebCore/html/LegacyHTMLDocumentParser.cpp

    r61658 r61662  
    2727
    2828#include "config.h"
    29 #include "HTMLDocumentParser.h"
     29#include "LegacyHTMLDocumentParser.h"
    3030
    3131#include "Attribute.h"
     
    147147// ----------------------------------------------------------------------------
    148148
    149 HTMLDocumentParser::HTMLDocumentParser(HTMLDocument* doc, bool reportErrors)
     149LegacyHTMLDocumentParser::LegacyHTMLDocumentParser(HTMLDocument* doc, bool reportErrors)
    150150    : DocumentParser()
    151151    , m_buffer(0)
     
    157157    , m_requestingScript(false)
    158158    , m_hasScriptsWaitingForStylesheets(false)
    159     , m_timer(this, &HTMLDocumentParser::timerFired)
    160     , m_externalScriptsTimer(this, &HTMLDocumentParser::executeExternalScriptsTimerFired)
     159    , m_timer(this, &LegacyHTMLDocumentParser::timerFired)
     160    , m_externalScriptsTimer(this, &LegacyHTMLDocumentParser::executeExternalScriptsTimerFired)
    161161    , m_doc(doc)
    162162    , m_treeConstructor(new LegacyHTMLTreeConstructor(doc, reportErrors))
     
    168168}
    169169
    170 HTMLDocumentParser::HTMLDocumentParser(HTMLViewSourceDocument* doc)
     170LegacyHTMLDocumentParser::LegacyHTMLDocumentParser(HTMLViewSourceDocument* doc)
    171171    : DocumentParser(true)
    172172    , m_buffer(0)
     
    178178    , m_requestingScript(false)
    179179    , m_hasScriptsWaitingForStylesheets(false)
    180     , m_timer(this, &HTMLDocumentParser::timerFired)
    181     , m_externalScriptsTimer(this, &HTMLDocumentParser::executeExternalScriptsTimerFired)
     180    , m_timer(this, &LegacyHTMLDocumentParser::timerFired)
     181    , m_externalScriptsTimer(this, &LegacyHTMLDocumentParser::executeExternalScriptsTimerFired)
    182182    , m_doc(doc)
    183183    , m_inWrite(false)
     
    188188}
    189189
    190 HTMLDocumentParser::HTMLDocumentParser(DocumentFragment* frag, FragmentScriptingPermission scriptingPermission)
     190LegacyHTMLDocumentParser::LegacyHTMLDocumentParser(DocumentFragment* frag, FragmentScriptingPermission scriptingPermission)
    191191    : m_buffer(0)
    192192    , m_scriptCode(0)
     
    197197    , m_requestingScript(false)
    198198    , m_hasScriptsWaitingForStylesheets(false)
    199     , m_timer(this, &HTMLDocumentParser::timerFired)
    200     , m_externalScriptsTimer(this, &HTMLDocumentParser::executeExternalScriptsTimerFired)
     199    , m_timer(this, &LegacyHTMLDocumentParser::timerFired)
     200    , m_externalScriptsTimer(this, &LegacyHTMLDocumentParser::executeExternalScriptsTimerFired)
    201201    , m_doc(frag->document())
    202202    , m_treeConstructor(new LegacyHTMLTreeConstructor(frag, scriptingPermission))
     
    208208}
    209209
    210 void HTMLDocumentParser::reset()
     210void LegacyHTMLDocumentParser::reset()
    211211{
    212212    ASSERT(m_executingScript == 0);
     
    239239}
    240240
    241 void HTMLDocumentParser::begin()
     241void LegacyHTMLDocumentParser::begin()
    242242{
    243243    m_executingScript = 0;
     
    275275}
    276276
    277 void HTMLDocumentParser::setForceSynchronous(bool force)
     277void LegacyHTMLDocumentParser::setForceSynchronous(bool force)
    278278{
    279279    m_state.setForceSynchronous(force);
    280280}
    281281
    282 HTMLDocumentParser::State HTMLDocumentParser::processListing(SegmentedString list, State state)
     282LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::processListing(SegmentedString list, State state)
    283283{
    284284    // This function adds the listing 'list' as
     
    317317}
    318318
    319 HTMLDocumentParser::State HTMLDocumentParser::parseNonHTMLText(SegmentedString& src, State state)
     319LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseNonHTMLText(SegmentedString& src, State state)
    320320{
    321321    ASSERT(state.inTextArea() || state.inTitle() || state.inIFrame() || !state.hasEntityState());
     
    414414}
    415415
    416 HTMLDocumentParser::State HTMLDocumentParser::scriptHandler(State state)
     416LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::scriptHandler(State state)
    417417{
    418418    // We are inside a <script>
     
    546546}
    547547
    548 HTMLDocumentParser::State HTMLDocumentParser::scriptExecution(const ScriptSourceCode& sourceCode, State state)
     548LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::scriptExecution(const ScriptSourceCode& sourceCode, State state)
    549549{
    550550    if (m_fragment || !m_doc->frame())
     
    602602}
    603603
    604 HTMLDocumentParser::State HTMLDocumentParser::parseComment(SegmentedString& src, State state)
     604LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseComment(SegmentedString& src, State state)
    605605{
    606606    // FIXME: Why does this code even run for comments inside <script> and <style>? This seems bogus.
     
    645645}
    646646
    647 HTMLDocumentParser::State HTMLDocumentParser::parseServer(SegmentedString& src, State state)
     647LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseServer(SegmentedString& src, State state)
    648648{
    649649    checkScriptBuffer(src.length());
     
    662662}
    663663
    664 HTMLDocumentParser::State HTMLDocumentParser::parseProcessingInstruction(SegmentedString& src, State state)
     664LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseProcessingInstruction(SegmentedString& src, State state)
    665665{
    666666    UChar oldchar = 0;
     
    688688}
    689689
    690 HTMLDocumentParser::State HTMLDocumentParser::parseText(SegmentedString& src, State state)
     690LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseText(SegmentedString& src, State state)
    691691{
    692692    while (!src.isEmpty()) {
     
    716716
    717717
    718 HTMLDocumentParser::State HTMLDocumentParser::parseEntity(SegmentedString& src, UChar*& dest, State state, unsigned& cBufferPos, bool start, bool parsingTag)
     718LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseEntity(SegmentedString& src, UChar*& dest, State state, unsigned& cBufferPos, bool start, bool parsingTag)
    719719{
    720720    if (start) {
     
    890890}
    891891
    892 HTMLDocumentParser::State HTMLDocumentParser::parseDoctype(SegmentedString& src, State state)
     892LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseDoctype(SegmentedString& src, State state)
    893893{
    894894    ASSERT(state.inDoctype());
     
    11061106}
    11071107
    1108 HTMLDocumentParser::State HTMLDocumentParser::parseTag(SegmentedString& src, State state)
     1108LegacyHTMLDocumentParser::State LegacyHTMLDocumentParser::parseTag(SegmentedString& src, State state)
    11091109{
    11101110    ASSERT(!state.hasEntityState());
     
    15761576}
    15771577
    1578 inline bool HTMLDocumentParser::continueProcessing(int& processedCount, double startTime, State &state)
     1578inline bool LegacyHTMLDocumentParser::continueProcessing(int& processedCount, double startTime, State &state)
    15791579{
    15801580    // We don't want to be checking elapsed time with every character, so we only check after we've
     
    16021602// Turns the statemachine one crank using the passed in State object.
    16031603// This does not modify m_state directly in order to be reentrant.
    1604 ALWAYS_INLINE void HTMLDocumentParser::advance(State& state)
     1604ALWAYS_INLINE void LegacyHTMLDocumentParser::advance(State& state)
    16051605{
    16061606    // do we need to enlarge the buffer?
     
    17101710}
    17111711
    1712 void HTMLDocumentParser::willWriteHTML(const SegmentedString& source)
     1712void LegacyHTMLDocumentParser::willWriteHTML(const SegmentedString& source)
    17131713{
    17141714    #if ENABLE(INSPECTOR)
     
    17181718}
    17191719
    1720 void HTMLDocumentParser::didWriteHTML()
     1720void LegacyHTMLDocumentParser::didWriteHTML()
    17211721{
    17221722    #if ENABLE(INSPECTOR)
     
    17261726}
    17271727
    1728 void HTMLDocumentParser::write(const SegmentedString& str, bool appendData)
     1728void LegacyHTMLDocumentParser::write(const SegmentedString& str, bool appendData)
    17291729{
    17301730    if (!m_buffer)
     
    17941794}
    17951795
    1796 void HTMLDocumentParser::stopParsing()
     1796void LegacyHTMLDocumentParser::stopParsing()
    17971797{
    17981798    DocumentParser::stopParsing();
    17991799    m_timer.stop();
    18001800
    1801     // FIXME: Why is HTMLDocumentParser the only DocumentParser which calls checkCompleted?
     1801    // FIXME: Why is LegacyHTMLDocumentParser the only DocumentParser which calls checkCompleted?
    18021802    // The FrameLoader needs to know that the parser has finished with its data,
    18031803    // regardless of whether it happened naturally or due to manual intervention.
     
    18061806}
    18071807
    1808 bool HTMLDocumentParser::processingData() const
     1808bool LegacyHTMLDocumentParser::processingData() const
    18091809{
    18101810    return m_timer.isActive() || m_inWrite;
    18111811}
    18121812
    1813 void HTMLDocumentParser::timerFired(Timer<HTMLDocumentParser>*)
     1813void LegacyHTMLDocumentParser::timerFired(Timer<LegacyHTMLDocumentParser>*)
    18141814{
    18151815    if (m_doc->view() && m_doc->view()->layoutPending() && !m_doc->minimumLayoutDelay()) {
     
    18241824}
    18251825
    1826 void HTMLDocumentParser::end()
     1826void LegacyHTMLDocumentParser::end()
    18271827{
    18281828    ASSERT(!m_timer.isActive());
     
    18481848}
    18491849
    1850 void HTMLDocumentParser::finish()
     1850void LegacyHTMLDocumentParser::finish()
    18511851{
    18521852    // do this as long as we don't find matching comment ends
     
    18861886}
    18871887
    1888 bool HTMLDocumentParser::finishWasCalled()
     1888bool LegacyHTMLDocumentParser::finishWasCalled()
    18891889{
    18901890    return m_noMoreData;
    18911891}
    18921892
    1893 PassRefPtr<Node> HTMLDocumentParser::processToken()
     1893PassRefPtr<Node> LegacyHTMLDocumentParser::processToken()
    18941894{
    18951895    if (m_dest > m_buffer) {
     
    19201920}
    19211921
    1922 void HTMLDocumentParser::processDoctypeToken()
     1922void LegacyHTMLDocumentParser::processDoctypeToken()
    19231923{
    19241924    if (inViewSourceMode())
     
    19281928}
    19291929
    1930 HTMLDocumentParser::~HTMLDocumentParser()
     1930LegacyHTMLDocumentParser::~LegacyHTMLDocumentParser()
    19311931{
    19321932    ASSERT(!m_inWrite);
     
    19351935
    19361936
    1937 void HTMLDocumentParser::enlargeBuffer(int len)
     1937void LegacyHTMLDocumentParser::enlargeBuffer(int len)
    19381938{
    19391939    // Resize policy: Always at least double the size of the buffer each time.
     
    19531953}
    19541954
    1955 void HTMLDocumentParser::enlargeScriptBuffer(int len)
     1955void LegacyHTMLDocumentParser::enlargeScriptBuffer(int len)
    19561956{
    19571957    // Resize policy: Always at least double the size of the buffer each time.
     
    19771977}
    19781978
    1979 void HTMLDocumentParser::executeScriptsWaitingForStylesheets()
     1979void LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets()
    19801980{
    19811981    ASSERT(m_doc->haveStylesheetsLoaded());
     
    19851985}
    19861986
    1987 void HTMLDocumentParser::notifyFinished(CachedResource*)
     1987void LegacyHTMLDocumentParser::notifyFinished(CachedResource*)
    19881988{
    19891989    executeExternalScriptsIfReady();
    19901990}
    19911991
    1992 void HTMLDocumentParser::executeExternalScriptsIfReady()
     1992void LegacyHTMLDocumentParser::executeExternalScriptsIfReady()
    19931993{
    19941994    ASSERT(!m_pendingScripts.isEmpty());
     
    20562056}
    20572057
    2058 void HTMLDocumentParser::executeExternalScriptsTimerFired(Timer<HTMLDocumentParser>*)
     2058void LegacyHTMLDocumentParser::executeExternalScriptsTimerFired(Timer<LegacyHTMLDocumentParser>*)
    20592059{
    20602060    if (m_doc->view() && m_doc->view()->layoutPending() && !m_doc->minimumLayoutDelay()) {
     
    20682068}
    20692069
    2070 bool HTMLDocumentParser::continueExecutingExternalScripts(double startTime)
     2070bool LegacyHTMLDocumentParser::continueExecutingExternalScripts(double startTime)
    20712071{
    20722072    if (m_externalScriptsTimer.isActive())
     
    20812081}
    20822082
    2083 bool HTMLDocumentParser::isWaitingForScripts() const
     2083bool LegacyHTMLDocumentParser::isWaitingForScripts() const
    20842084{
    20852085    return m_state.loadingExtScript();
    20862086}
    20872087
    2088 void HTMLDocumentParser::setSrc(const SegmentedString& source)
     2088void LegacyHTMLDocumentParser::setSrc(const SegmentedString& source)
    20892089{
    20902090    m_src = source;
     
    20932093void parseLegacyHTMLDocumentFragment(const String& source, DocumentFragment* fragment, FragmentScriptingPermission scriptingPermission)
    20942094{
    2095     HTMLDocumentParser parser(fragment, scriptingPermission);
     2095    LegacyHTMLDocumentParser parser(fragment, scriptingPermission);
    20962096    parser.setForceSynchronous(true);
    20972097    parser.write(source, true);
  • trunk/WebCore/html/LegacyHTMLDocumentParser.h

    r61658 r61662  
    141141// down into a separate HTML lexer class.
    142142
    143 class HTMLDocumentParser : public DocumentParser, public CachedResourceClient {
     143class LegacyHTMLDocumentParser : public DocumentParser, public CachedResourceClient {
    144144public:
    145     HTMLDocumentParser(HTMLDocument*, bool reportErrors);
    146     HTMLDocumentParser(HTMLViewSourceDocument*);
    147     HTMLDocumentParser(DocumentFragment*, FragmentScriptingPermission = FragmentScriptingAllowed);
    148     virtual ~HTMLDocumentParser();
     145    LegacyHTMLDocumentParser(HTMLDocument*, bool reportErrors);
     146    LegacyHTMLDocumentParser(HTMLViewSourceDocument*);
     147    LegacyHTMLDocumentParser(DocumentFragment*, FragmentScriptingPermission = FragmentScriptingAllowed);
     148    virtual ~LegacyHTMLDocumentParser();
    149149
    150150    virtual void write(const SegmentedString&, bool appendData);
     
    166166
    167167    virtual LegacyHTMLTreeConstructor* htmlTreeConstructor() const { return m_treeConstructor.get(); }
    168     virtual HTMLDocumentParser* asHTMLDocumentParser() { return this; }
     168    virtual LegacyHTMLDocumentParser* asHTMLDocumentParser() { return this; }
    169169
    170170private:
     
    215215
    216216    bool continueProcessing(int& processedCount, double startTime, State&);
    217     void timerFired(Timer<HTMLDocumentParser>*);
     217    void timerFired(Timer<LegacyHTMLDocumentParser>*);
    218218    void allDataProcessed();
    219219
     
    222222
    223223    void executeExternalScriptsIfReady();
    224     void executeExternalScriptsTimerFired(Timer<HTMLDocumentParser>*);
     224    void executeExternalScriptsTimerFired(Timer<LegacyHTMLDocumentParser>*);
    225225    bool continueExecutingExternalScripts(double startTime);
    226226
     
    419419
    420420    // The timer for continued processing.
    421     Timer<HTMLDocumentParser> m_timer;
     421    Timer<LegacyHTMLDocumentParser> m_timer;
    422422
    423423    // The timer for continued executing external scripts.
    424     Timer<HTMLDocumentParser> m_externalScriptsTimer;
     424    Timer<LegacyHTMLDocumentParser> m_externalScriptsTimer;
    425425
    426426// This buffer can hold arbitrarily long user-defined attribute names, such as in EMBED tags.
  • trunk/WebCore/html/LegacyHTMLTreeConstructor.cpp

    r61107 r61662  
    5353#include "HTMLTableRowElement.h"
    5454#include "HTMLTableSectionElement.h"
    55 #include "HTMLDocumentParser.h"
     55#include "LegacyHTMLDocumentParser.h"
    5656#include "LocalizedStrings.h"
    5757#include "Page.h"
     
    16491649        return;
    16501650   
    1651     HTMLDocumentParser* htmlTokenizer = static_cast<HTMLDocumentParser*>(m_document->parser());
     1651    LegacyHTMLDocumentParser* htmlTokenizer = static_cast<LegacyHTMLDocumentParser*>(m_document->parser());
    16521652    int lineNumber = htmlTokenizer->lineNumber() + 1;
    16531653
  • trunk/WebCore/html/LegacyHTMLTreeConstructor.h

    r61637 r61662  
    4848
    4949/**
    50  * The parser for HTML. It receives a stream of tokens from the HTMLDocumentParser, and
     50 * The parser for HTML. It receives a stream of tokens from the LegacyHTMLDocumentParser, and
    5151 * builds up the Document structure from it.
    5252 */
  • trunk/WebCore/loader/FTPDirectoryDocument.cpp

    r61104 r61662  
    3030#include "HTMLNames.h"
    3131#include "HTMLTableElement.h"
    32 #include "HTMLDocumentParser.h"
     32#include "LegacyHTMLDocumentParser.h"
    3333#include "LocalizedStrings.h"
    3434#include "Logging.h"
     
    4949using namespace HTMLNames;
    5050   
    51 class FTPDirectoryDocumentParser : public HTMLDocumentParser {
     51class FTPDirectoryDocumentParser : public LegacyHTMLDocumentParser {
    5252public:
    5353    FTPDirectoryDocumentParser(HTMLDocument*);
     
    9696
    9797FTPDirectoryDocumentParser::FTPDirectoryDocumentParser(HTMLDocument* doc)
    98     : HTMLDocumentParser(doc, false)
     98    : LegacyHTMLDocumentParser(doc, false)
    9999    , m_doc(doc)
    100100    , m_skipLF(false)
     
    307307    // Tokenize the template as an HTML document synchronously
    308308    setForceSynchronous(true);
    309     HTMLDocumentParser::write(String(templateDocumentData->data(), templateDocumentData->size()), true);
     309    LegacyHTMLDocumentParser::write(String(templateDocumentData->data(), templateDocumentData->size()), true);
    310310    setForceSynchronous(false);
    311311   
     
    432432    fastFree(m_buffer);
    433433       
    434     HTMLDocumentParser::finish();
     434    LegacyHTMLDocumentParser::finish();
    435435}
    436436
  • trunk/WebCore/page/XSSAuditor.h

    r61584 r61662  
    6767    // * ScriptEventListener::createAttributeEventListener - used to create JavaScript event handlers.
    6868    // * HTMLBaseElement::process - used to set the document base URL.
    69     // * HTMLDocumentParser::parseTag - used to load external JavaScript scripts.
     69    // * LegacyHTMLDocumentParser::parseTag - used to load external JavaScript scripts.
    7070    // * SubframeLoader::requestObject - used to load <object>/<embed> elements.
    7171    //
  • trunk/WebKit/chromium/ChangeLog

    r61659 r61662  
     12010-06-22  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Rename HTMLDocumentParser to LegacyHTMLDocumentParser
     6        https://bugs.webkit.org/show_bug.cgi?id=41043
     7
     8        * src/WebEntities.cpp:
     9
    1102010-06-22  Pavel Feldman  <pfeldman@chromium.org>
    211
  • trunk/WebKit/chromium/src/WebEntities.cpp

    r61091 r61662  
    4343
    4444namespace {
    45 // Note that this file is also included by HTMLDocumentParser.cpp so we are getting
     45// Note that this file is also included by LegacyHTMLDocumentParser.cpp so we are getting
    4646// two copies of the data in memory.  We can fix this by changing the script
    4747// that generated the array to create a static const that is its length, but
  • trunk/WebKitTools/ChangeLog

    r61660 r61662  
     12010-06-22  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Rename HTMLDocumentParser to LegacyHTMLDocumentParser
     6        https://bugs.webkit.org/show_bug.cgi?id=41043
     7
     8        Update the hash.
     9
     10        * Scripts/do-webcore-rename:
     11
    1122010-06-22  Sam Magnuson  <smagnuson@netflix.com>
    213
  • trunk/WebKitTools/Scripts/do-webcore-rename

    r61583 r61662  
    9797my %renames = (
    9898    # Renames go here in the form of:
    99     # "Tokenizer" => "DocumentParser",
     99    # "HTMLDocumentParser" => "LegacyHTMLDocumentParser",
    100100);
    101101
Note: See TracChangeset for help on using the changeset viewer.