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

Unified Diff: Source/bindings/v8/BindingSecurity.cpp

Issue 68893018: Rename es => exceptionState in bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
Index: Source/bindings/v8/BindingSecurity.cpp
diff --git a/Source/bindings/v8/BindingSecurity.cpp b/Source/bindings/v8/BindingSecurity.cpp
index bd4b58b567249d2bd566c08a9e59632ed81a2349..2f35196e1e23d72d0c682c7f56331ca175ce5b6b 100644
--- a/Source/bindings/v8/BindingSecurity.cpp
+++ b/Source/bindings/v8/BindingSecurity.cpp
@@ -55,13 +55,13 @@ static bool isDocumentAccessibleFromDOMWindow(Document* targetDocument, DOMWindo
return false;
}
-static bool canAccessDocument(Document* targetDocument, ExceptionState& es)
+static bool canAccessDocument(Document* targetDocument, ExceptionState& exceptionState)
{
DOMWindow* activeWindow = activeDOMWindow();
if (isDocumentAccessibleFromDOMWindow(targetDocument, activeWindow))
return true;
- es.throwSecurityError(targetDocument->domWindow()->sanitizedCrossDomainAccessErrorMessage(activeWindow), targetDocument->domWindow()->crossDomainAccessErrorMessage(activeWindow));
+ exceptionState.throwSecurityError(targetDocument->domWindow()->sanitizedCrossDomainAccessErrorMessage(activeWindow), targetDocument->domWindow()->crossDomainAccessErrorMessage(activeWindow));
return false;
}
@@ -84,14 +84,14 @@ bool BindingSecurity::shouldAllowAccessToFrame(Frame* target, SecurityReportingO
return target && canAccessDocument(target->document(), reportingOption);
}
-bool BindingSecurity::shouldAllowAccessToFrame(Frame* target, ExceptionState& es)
+bool BindingSecurity::shouldAllowAccessToFrame(Frame* target, ExceptionState& exceptionState)
{
- return target && canAccessDocument(target->document(), es);
+ return target && canAccessDocument(target->document(), exceptionState);
}
-bool BindingSecurity::shouldAllowAccessToNode(Node* target, ExceptionState& es)
+bool BindingSecurity::shouldAllowAccessToNode(Node* target, ExceptionState& exceptionState)
{
- return target && canAccessDocument(&target->document(), es);
+ return target && canAccessDocument(&target->document(), exceptionState);
}
}
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.cpp ('k') | Source/bindings/v8/CustomElementConstructorBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698