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

Unified Diff: third_party/WebKit/Source/core/frame/Window.idl

Issue 2335203006: Add [CachedAccessor] attribute to cache (almost) constant accessors (window.document). (Closed)
Patch Set: Pre-review nits Created 4 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
Index: third_party/WebKit/Source/core/frame/Window.idl
diff --git a/third_party/WebKit/Source/core/frame/Window.idl b/third_party/WebKit/Source/core/frame/Window.idl
index fb6de0a9bd4f0e3a0695a596462a11e9b742af3d..9a407422e400fd237e6fbbeb1ba37fb9ef86a844 100644
--- a/third_party/WebKit/Source/core/frame/Window.idl
+++ b/third_party/WebKit/Source/core/frame/Window.idl
@@ -36,7 +36,8 @@
// FIXME: The spec uses the WindowProxy type for this and many other attributes.
[Unforgeable, DoNotCheckSecurity] readonly attribute Window window;
[Replaceable, DoNotCheckSecurity] readonly attribute Window self;
- [Unforgeable] readonly attribute Document document;
+ [Unforgeable, StoreInField] readonly attribute Document document;
+
attribute DOMString name;
[PutForwards=href, Unforgeable, DoNotCheckSecurity] readonly attribute Location location;
readonly attribute History history;

Powered by Google App Engine
This is Rietveld 408576698