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 |