Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Unified Diff: Source/core/dom/Document.h

Issue 1176013002: Move attributes and methods from HTMLDocument to Document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/v8/custom/custom.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index a7a76bcdb09527bb93b3d4ce69c5cee7643146b3..cbcffee5d0461eff7478cbade339b0c823013499 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -492,11 +492,16 @@ public:
DocumentLoader* loader() const;
- void open(Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXCEPTION);
+ // This is the DOM API document.open()
+ void open(Document* ownerDocument, ExceptionState&);
+ // This is used internally and does not handle exceptions.
+ void open();
PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPolicy);
- // close() is the DOM API document.close()
- void close(ExceptionState& = ASSERT_NO_EXCEPTION);
+ // This is the DOM API document.close()
+ void close(ExceptionState&);
+ // This is used internally and does not handle exceptions.
+ void close();
// In some situations (see the code), we ignore document.close().
// explicitClose() bypass these checks and actually tries to close the
// input stream.
@@ -520,6 +525,8 @@ public:
void write(const SegmentedString& text, Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXCEPTION);
void write(const String& text, Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXCEPTION);
void writeln(const String& text, Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXCEPTION);
+ void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState&);
+ void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&);
bool wellFormed() const { return m_wellFormed; }
« no previous file with comments | « Source/bindings/core/v8/custom/custom.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698