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

Unified Diff: third_party/WebKit/Source/core/css/PropertyRegistration.cpp

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more Created 3 years, 11 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
Index: third_party/WebKit/Source/core/css/PropertyRegistration.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
index fc591498d1468864a635b801473f7f12cd4b092c..2d049f680983e2e42cec3f87ec2429f0b430ff12 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
+++ b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
@@ -61,7 +61,7 @@ static bool computationallyIndependent(const CSSValue& value) {
}
void PropertyRegistration::registerProperty(
- ExecutionContext* executionContext,
+ ScriptState* scriptState,
const PropertyDescriptor& descriptor,
ExceptionState& exceptionState) {
// Bindings code ensures these are set.
@@ -76,7 +76,7 @@ void PropertyRegistration::registerProperty(
return;
}
AtomicString atomicName(name);
- Document* document = toDocument(executionContext);
+ Document* document = toDocument(scriptState->getExecutionContext());
PropertyRegistry& registry = *document->propertyRegistry();
if (registry.registration(atomicName)) {
exceptionState.throwDOMException(
« no previous file with comments | « third_party/WebKit/Source/core/css/PropertyRegistration.h ('k') | third_party/WebKit/Source/core/css/PropertyRegistration.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698