Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Ref-ify some functions that always succeed in constructing Documents.
<https://webkit.org/b/147552> Reviewed by Sam Weinig. Update some functions involved in the construction of new Document objects to codify that they always construct objects. Bonus: DOMImplementation::createCSSStyleSheet(). * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createCSSStyleSheet): (WebCore::DOMImplementation::createHTMLDocument): (WebCore::DOMImplementation::createDocument): * dom/DOMImplementation.h: * loader/DocumentWriter.cpp: (WebCore::DocumentWriter::createDocument): (WebCore::DocumentWriter::begin): * loader/DocumentWriter.h: * xml/DOMParser.cpp: (WebCore::DOMParser::parseFromString): * xml/DOMParser.h: * xml/XSLTProcessor.cpp: (WebCore::XSLTProcessor::createDocumentFromSource): * xml/XSLTProcessor.h: Canonical link: https://commits.webkit.org/165927@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
55 additions
and 27 deletions.
- +28 −0 Source/WebCore/ChangeLog
- +12 −12 Source/WebCore/dom/DOMImplementation.cpp
- +3 −3 Source/WebCore/dom/DOMImplementation.h
- +3 −3 Source/WebCore/loader/DocumentWriter.cpp
- +1 −1 Source/WebCore/loader/DocumentWriter.h
- +4 −4 Source/WebCore/xml/DOMParser.cpp
- +1 −1 Source/WebCore/xml/DOMParser.h
- +2 −2 Source/WebCore/xml/XSLTProcessor.cpp
- +1 −1 Source/WebCore/xml/XSLTProcessor.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -68,7 +68,7 @@ class DocumentWriter { | ||
void setDocumentWasLoadedAsPartOfNavigation(); | ||
|
||
private: | ||
Ref<Document> createDocument(const URL&); | ||
void clear(); | ||
|
||
Frame* m_frame; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters