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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 263ba12f6687ca66842b49d3a1f48af99598472b..f048342a9d932b67c74a3cd7e71ac61b38203874 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -85,13 +85,11 @@
#include "core/html/HTMLImageElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLMediaElement.h"
-#include "core/html/HTMLPlugInElement.h"
#include "core/html/HTMLSelectElement.h"
#include "core/html/HTMLTextAreaElement.h"
#include "core/html/canvas/CanvasFontCache.h"
#include "core/html/canvas/CanvasRenderingContext.h"
#include "core/html/forms/FormController.h"
-#include "core/html/shadow/PluginPlaceholderElement.h"
#include "core/html/shadow/ShadowElementNames.h"
#include "core/html/shadow/TextControlInnerElements.h"
#include "core/input/EventHandler.h"
@@ -116,8 +114,6 @@
#include "core/page/Page.h"
#include "core/page/PrintContext.h"
#include "core/paint/DeprecatedPaintLayer.h"
-#include "core/plugins/testing/DictionaryPluginPlaceholder.h"
-#include "core/plugins/testing/DocumentFragmentPluginPlaceholder.h"
#include "core/svg/SVGImageElement.h"
#include "core/testing/DictionaryTest.h"
#include "core/testing/GCObservation.h"
@@ -2391,24 +2387,6 @@ ClientRect* Internals::boundsInViewportSpace(Element* element)
return ClientRect::create(element->boundsInViewportSpace());
}
-void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRawPtr<DocumentFragment> fragment, ExceptionState& exceptionState)
-{
- if (!element->isPluginElement()) {
- exceptionState.throwDOMException(InvalidNodeTypeError, "The element provided is not a plugin.");
- return;
- }
- toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlaceholder::create(fragment));
-}
-
-void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceholderOptions& options, ExceptionState& exceptionState)
-{
- if (!element->isPluginElement()) {
- exceptionState.throwDOMException(InvalidNodeTypeError, "The element provided is not a plugin.");
- return;
- }
- toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::create(element->document(), options));
-}
-
void Internals::forceBlinkGCWithoutV8GC()
{
ThreadState::current()->setGCState(ThreadState::FullGCScheduled);

Powered by Google App Engine
This is Rietveld 408576698