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

Unified Diff: Source/core/html/HTMLMarqueeElement.cpp

Issue 654583003: Use the Document rather than the Frame's execution context to install JS-based marquee elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 2 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/html/HTMLMarqueeElement.cpp
diff --git a/Source/core/html/HTMLMarqueeElement.cpp b/Source/core/html/HTMLMarqueeElement.cpp
index b53c7f06994733e74876b4b0b2fbc69eababc747..c17fa69bf2205585b1e89b5c9ca30a54cabbc9da 100644
--- a/Source/core/html/HTMLMarqueeElement.cpp
+++ b/Source/core/html/HTMLMarqueeElement.cpp
@@ -34,7 +34,7 @@ namespace blink {
inline HTMLMarqueeElement::HTMLMarqueeElement(Document& document)
: HTMLElement(HTMLNames::marqueeTag, document)
{
- v8::Handle<v8::Value> classObject = PrivateScriptRunner::installClassIfNeeded(document.frame(), "HTMLMarqueeElement");
+ v8::Handle<v8::Value> classObject = PrivateScriptRunner::installClassIfNeeded(&document, "HTMLMarqueeElement");
RELEASE_ASSERT(!classObject.IsEmpty());
adamk 2014/10/22 17:38:45 This RELEASE_ASSERT still looks scary to me. There
haraken 2014/10/23 00:52:05 I think we can just remove installClassIfNeeded()
UseCounter::count(document, UseCounter::HTMLMarqueeElement);
}

Powered by Google App Engine
This is Rietveld 408576698