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

Unified Diff: Source/bindings/dart/custom/DartWindowCustom.cpp

Issue 23895004: Keep a persistent handle for the bindings classes to avoid repeated lookups that involve performing… (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: . Created 7 years, 3 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/dart/custom/DartDOMStringMapCustom.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/custom/DartWindowCustom.cpp
diff --git a/Source/bindings/dart/custom/DartWindowCustom.cpp b/Source/bindings/dart/custom/DartWindowCustom.cpp
index 215bda4cffb53f9857c0f76ddb470e045dd60d29..978711173a35f6b8ba5202979bb20779056bcf7d 100644
--- a/Source/bindings/dart/custom/DartWindowCustom.cpp
+++ b/Source/bindings/dart/custom/DartWindowCustom.cpp
@@ -69,7 +69,7 @@ void historyCrossFrameGetter(Dart_NativeArguments args)
DOMWindow* receiver = DartDOMWrapper::receiver<DOMWindow>(args);
Dart_Handle result = DartDOMWrapper::toDartWithClassName<DartHistory>(
- receiver->history(), "_HistoryCrossFrame", DartUtilities::htmlLibraryName);
+ receiver->history(), "_HistoryCrossFrame", DartUtilities::htmlLibraryName, _HistoryCrossFrameClassId);
if (result)
Dart_SetReturnValue(args, result);
}
@@ -81,7 +81,7 @@ void locationCrossFrameGetter(Dart_NativeArguments args)
DOMWindow* receiver = DartDOMWrapper::receiver<DOMWindow>(args);
Dart_Handle result = DartDOMWrapper::toDartWithClassName<DartLocation>(
- receiver->location(), "_LocationCrossFrame", DartUtilities::htmlLibraryName);
+ receiver->location(), "_LocationCrossFrame", DartUtilities::htmlLibraryName, _LocationCrossFrameClassId);
if (result)
Dart_SetReturnValue(args, result);
}
@@ -305,7 +305,7 @@ void ___getter___2Callback(Dart_NativeArguments)
Dart_Handle DartWindow::toDart(DOMWindow* window)
{
- return DartDOMWrapper::toDartWithClassName<DartWindow>(window, "_DOMWindowCrossFrame", DartUtilities::htmlLibraryName);
+ return DartDOMWrapper::toDartWithClassName<DartWindow>(window, "_DOMWindowCrossFrame", DartUtilities::htmlLibraryName, _DOMWindowCrossFrameClassId);
}
}
« no previous file with comments | « Source/bindings/dart/custom/DartDOMStringMapCustom.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698