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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp

Issue 2197953002: Remove unnecessary uses of HTMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify Created 4 years, 5 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: third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp
index ab79a672a030bcc04ef69748507ab53a3bd30f3c..b3bfd00150254a7733ced13a8d788dc7103f7c4e 100644
--- a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp
@@ -11,7 +11,6 @@
#include "core/dom/NodeTraversal.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/frame/FrameView.h"
-#include "core/html/HTMLDocument.h"
#include "core/html/HTMLElement.h"
#include "core/testing/DummyPageHolder.h"
#include "platform/geometry/IntSize.h"
@@ -25,7 +24,7 @@ namespace blink {
class FlatTreeTraversalTest : public ::testing::Test {
protected:
- HTMLDocument& document() const;
+ Document& document() const;
// Sets |mainHTML| to BODY element with |innerHTML| property and attaches
// shadow root to child with |shadowHTML|, then update distribution for
@@ -40,18 +39,18 @@ protected:
private:
void SetUp() override;
- Persistent<HTMLDocument> m_document;
+ Persistent<Document> m_document;
std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
};
void FlatTreeTraversalTest::SetUp()
{
m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
- m_document = toHTMLDocument(&m_dummyPageHolder->document());
+ m_document = &m_dummyPageHolder->document();
DCHECK(m_document);
}
-HTMLDocument& FlatTreeTraversalTest::document() const
+Document& FlatTreeTraversalTest::document() const
{
return *m_document;
}

Powered by Google App Engine
This is Rietveld 408576698