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

Unified Diff: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md

Issue 2873543002: First implementation of lazily cached accessor for DOM attributes. (Closed)
Patch Set: whitespace and renaming fixes Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
diff --git a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
index fd4b6d40407e7cca59400b8c1bdd1de35542a5f6..9ff5bd427f534b4d8cf74d2828d29c6af0939658 100644
--- a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
+++ b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
@@ -1484,7 +1484,7 @@ Summary: Caches the accessor result in a private property (not directly accesibl
***
-Usage: `[CachedAccessor]` takes no arguments, can be specified on attributes.
+Usage: `[CachedAccessor]` takes an optional argument "Lazy", can be specified on attributes.
```webidl
interface HTMLFoo {
@@ -1492,6 +1492,11 @@ interface HTMLFoo {
};
```
+```webidl
+interface HTMLFoo {
+ [CachedAccessor=Lazy] readonly attribute Bar bar;
+};
+```
Register the required property in V8PrivateProperty.h.
To update the cached value (e.g. for HTMLFoo.bar) proceed as follows:
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698