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

Unified Diff: Source/core/css/StyleSheetList.cpp

Issue 15373004: Auto-generate V8StyleSheetList::namedPropertyGetter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 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: Source/core/css/StyleSheetList.cpp
diff --git a/Source/core/css/StyleSheetList.cpp b/Source/core/css/StyleSheetList.cpp
index 6715b33ec6b9e9f390f812dbb97af32acad476bc..e867dbc99521c767f0fa70c33092245931db268e 100644
--- a/Source/core/css/StyleSheetList.cpp
+++ b/Source/core/css/StyleSheetList.cpp
@@ -81,4 +81,13 @@ HTMLStyleElement* StyleSheetList::getNamedItem(const String& name) const
return 0;
}
+CSSStyleSheet* StyleSheetList::anonymousNamedGetter(const AtomicString& name)
+{
+ HTMLStyleElement* item = getNamedItem(name);
+ if (!item)
+ return 0;
+
+ return item->sheet();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698