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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.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/html/HTMLElement.idl
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.idl b/third_party/WebKit/Source/core/html/HTMLElement.idl
index 9c316ec8df80d81623b28f300ba9d1770d66f318..021e4c42b0b7c91df12fb51ef4a408c7cb1dffbd 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.idl
+++ b/third_party/WebKit/Source/core/html/HTMLElement.idl
@@ -22,8 +22,8 @@
[HTMLConstructor]
interface HTMLElement : Element {
// metadata attributes
- [CEReactions, Reflect] attribute DOMString title;
- [CEReactions, Reflect] attribute DOMString lang;
+ [CEReactions, Reflect, CachedAccessor=Lazy] attribute DOMString title;
Yuki 2017/05/09 06:06:31 Just curious, are |title| and |lang| so important?
nverne 2017/05/10 02:11:49 haraken@ said these were good test cases for the m
+ [CEReactions, Reflect, CachedAccessor=Lazy] attribute DOMString lang;
[CEReactions] attribute boolean translate;
[CEReactions] attribute DOMString dir;
[SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset;

Powered by Google App Engine
This is Rietveld 408576698