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

Unified Diff: Source/core/testing/Internals.cpp

Issue 183253003: Consistently use ExceptionState::throwTypeError(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/xml/DOMParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 11d7af666f16bec556db17ca607e58a4a9e83345..456f7d46cef91fa37bf03a7cec912b1fdae62e61 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2102,7 +2102,7 @@ void Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(Node*
} else if (node->hasTagName(HTMLNames::iframeTag)) {
document = toHTMLIFrameElement(node)->contentDocument();
} else {
- exceptionState.throwDOMException(TypeError, "The node provided is neither a document nor an IFrame.");
+ exceptionState.throwTypeError("The node provided is neither a document nor an IFrame.");
return;
}
document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasksSynchronously);
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/xml/DOMParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698