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

Unified Diff: third_party/WebKit/Source/core/dom/Element.idl

Issue 2873543002: First implementation of lazily cached accessor for DOM attributes. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/dom/Element.idl
diff --git a/third_party/WebKit/Source/core/dom/Element.idl b/third_party/WebKit/Source/core/dom/Element.idl
index c6869f2af61f21362d76336be0d83ad52dc367cc..7106251b771ed5c5e0a9261dc471a069a0af2cf5 100644
--- a/third_party/WebKit/Source/core/dom/Element.idl
+++ b/third_party/WebKit/Source/core/dom/Element.idl
@@ -31,7 +31,7 @@ interface Element : Node {
readonly attribute DOMString localName;
readonly attribute DOMString tagName;
- [CEReactions, Reflect] attribute DOMString id;
+ [CEReactions, Reflect, CachedAccessor=Lazy] attribute DOMString id;
[CEReactions, Reflect=class] attribute DOMString className;
[SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attribute DOMTokenList classList;
[Unscopable, CEReactions, Reflect] attribute DOMString slot;

Powered by Google App Engine
This is Rietveld 408576698