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

Unified Diff: Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge origin/master 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
« no previous file with comments | « Source/core/plugins/testing/DictionaryPluginPlaceholder.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h
diff --git a/Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h b/Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h
deleted file mode 100644
index aa7d0ffe19a155349e317c992f87117ebce8d8eb..0000000000000000000000000000000000000000
--- a/Source/core/plugins/testing/DocumentFragmentPluginPlaceholder.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef DocumentFragmentPluginPlaceholder_h
-#define DocumentFragmentPluginPlaceholder_h
-
-#include "core/dom/Document.h"
-#include "core/dom/DocumentFragment.h"
-#include "core/plugins/PluginPlaceholder.h"
-
-namespace blink {
-
-// Populates plugin placeholder content with a document fragment.
-// Used for layout tests that contain a <template>.
-class DocumentFragmentPluginPlaceholder final : public NoBaseWillBeGarbageCollected<DocumentFragmentPluginPlaceholder>, public PluginPlaceholder {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DocumentFragmentPluginPlaceholder);
- WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DocumentFragmentPluginPlaceholder);
-public:
- static PassOwnPtrWillBeRawPtr<DocumentFragmentPluginPlaceholder> create(PassRefPtrWillBeRawPtr<DocumentFragment> fragment)
- {
- return adoptPtrWillBeNoop(new DocumentFragmentPluginPlaceholder(fragment));
- }
-
-#if !ENABLE(OILPAN)
- ~DocumentFragmentPluginPlaceholder() override { }
-#endif
- DEFINE_INLINE_VIRTUAL_TRACE() { visitor->trace(m_fragment); }
-
- void loadIntoContainer(ContainerNode& container) override
- {
- RefPtrWillBeRawPtr<Node> clonedFragment = container.document().importNode(m_fragment.get(), true /* deep */, ASSERT_NO_EXCEPTION);
- container.appendChild(clonedFragment.release(), ASSERT_NO_EXCEPTION);
- }
-
-private:
- DocumentFragmentPluginPlaceholder(PassRefPtrWillBeRawPtr<DocumentFragment> fragment) : m_fragment(fragment) { }
-
- RefPtrWillBeMember<DocumentFragment> m_fragment;
-};
-
-} // namespace blink
-
-#endif // DocumentFragmentPluginPlaceholder_h
« no previous file with comments | « Source/core/plugins/testing/DictionaryPluginPlaceholder.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698