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

Unified Diff: Source/core/html/shadow/PluginPlaceholderElement.cpp

Issue 516273002: Move plugin placeholder style to CSS, and allow it to bypass main world CSP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: gn Created 6 years, 3 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/shadow/PluginPlaceholderElement.cpp
diff --git a/Source/core/html/shadow/PluginPlaceholderElement.cpp b/Source/core/html/shadow/PluginPlaceholderElement.cpp
index 6096d609e1d2f6b476dc37e0247cec8e4ad2e2f2..414edf51672a771269966523f3e716e1b02aee6b 100644
--- a/Source/core/html/shadow/PluginPlaceholderElement.cpp
+++ b/Source/core/html/shadow/PluginPlaceholderElement.cpp
@@ -6,8 +6,10 @@
#include "core/html/shadow/PluginPlaceholderElement.h"
#include "bindings/core/v8/V8PluginPlaceholderElement.h"
+#include "core/UserAgentStyleSheets.h"
#include "core/dom/Document.h"
#include "wtf/Assertions.h"
+#include "wtf/text/WTFString.h"
namespace blink {
@@ -31,6 +33,11 @@ void PluginPlaceholderElement::setMessage(const String& htmlMessage)
ASSERT_UNUSED(success, success);
}
+String PluginPlaceholderElement::styleSource() const
+{
+ return pluginPlaceholderElementCss;
abarth-chromium 2014/09/02 22:34:34 Please use GRD to load this resource. See other c
jbroman 2014/09/02 23:53:32 I'd done that previously, though I had trouble. In
jbroman 2014/09/16 21:39:25 Done.
+}
+
v8::Handle<v8::Object> PluginPlaceholderElement::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
return blink::wrap(this, creationContext, isolate);

Powered by Google App Engine
This is Rietveld 408576698