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

Unified Diff: third_party/WebKit/Source/core/editing/GranularityStrategyTest.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/editing/GranularityStrategyTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp b/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp
index 82853affd405145f60878c8024362401eff1f81f..c3231f7838de0e9c8c6e47a4493a061f45577cd6 100644
--- a/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp
+++ b/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp
@@ -10,7 +10,6 @@
#include "core/frame/FrameView.h"
#include "core/frame/Settings.h"
#include "core/html/HTMLBodyElement.h"
-#include "core/html/HTMLDocument.h"
#include "core/html/HTMLSpanElement.h"
#include "core/testing/DummyPageHolder.h"
#include "platform/heap/Handle.h"
@@ -41,7 +40,7 @@ protected:
void SetUp() override;
DummyPageHolder& dummyPageHolder() const { return *m_dummyPageHolder; }
- HTMLDocument& document() const;
+ Document& document() const;
void setSelection(const VisibleSelection&);
FrameSelection& selection() const;
Text* appendTextNode(const String& data);
@@ -70,19 +69,19 @@ protected:
private:
std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
- Persistent<HTMLDocument> m_document;
+ Persistent<Document> m_document;
};
void GranularityStrategyTest::SetUp()
{
m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
- m_document = toHTMLDocument(&m_dummyPageHolder->document());
+ m_document = &m_dummyPageHolder->document();
DCHECK(m_document);
dummyPageHolder().frame().settings()->setDefaultFontSize(12);
dummyPageHolder().frame().settings()->setSelectionStrategy(SelectionStrategy::Direction);
}
-HTMLDocument& GranularityStrategyTest::document() const
+Document& GranularityStrategyTest::document() const
{
return *m_document;
}

Powered by Google App Engine
This is Rietveld 408576698