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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h

Issue 2429343004: [CachedAccessor] for window.document. (Closed)
Patch Set: Fix expectation for global-interface-listing-expected, windows. Created 4 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: third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h b/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h
index 2c1da757e4014984c83d7d7bb2b2b03531c8daa9..762a34e11ae92a327807c44d1ef4d34eea7cf009 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h
@@ -34,7 +34,8 @@ class ScriptWrappable;
X(SameObject, NotificationActions) \
X(SameObject, NotificationData) \
X(SameObject, NotificationVibrate) \
- X(V8NodeFilterCondition, Filter)
+ X(V8NodeFilterCondition, Filter) \
+ X(Window, DocumentCachedAccessor)
// The getter's name for a private property.
#define V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, PrivateKeyName) \
@@ -105,6 +106,8 @@ class CORE_EXPORT V8PrivateProperty {
return v8CallBoolean(object->SetPrivate(context, m_privateSymbol, value));
}
+ v8::Local<v8::Private> getPrivate() { return m_privateSymbol; }
+
private:
friend class V8PrivateProperty;
// The following classes are exceptionally allowed to call to

Powered by Google App Engine
This is Rietveld 408576698