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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index ed6a2eae15a0e18c8c0eba543e8a27344813f747..e61c3843be7a83bd14bafe6a848d80ecaae4d4d0 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -42,7 +42,6 @@
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
#include "core/frame/VisualViewport.h"
-#include "core/html/HTMLDocument.h"
#include "core/html/HTMLIFrameElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLTextAreaElement.h"
@@ -464,7 +463,7 @@ TEST_F(WebViewTest, FocusIsInactive)
WebLocalFrameImpl* frame = webView->mainFrameImpl();
EXPECT_TRUE(frame->frame()->document()->isHTMLDocument());
- HTMLDocument* document = toHTMLDocument(frame->frame()->document());
+ Document* document = frame->frame()->document();
EXPECT_TRUE(document->hasFocus());
webView->setFocus(false);
webView->setIsActive(false);
@@ -2698,7 +2697,7 @@ TEST_F(WebViewTest, TextInputFlags)
webViewImpl->setInitialFocus(false);
WebLocalFrameImpl* frame = webViewImpl->mainFrameImpl();
- HTMLDocument* document = toHTMLDocument(frame->frame()->document());
+ Document* document = frame->frame()->document();
// (A) <input>
// (A.1) Verifies autocorrect/autocomplete/spellcheck flags are Off and
@@ -2748,7 +2747,7 @@ TEST_F(WebViewTest, NonUserInputTextUpdate)
webViewImpl->setInitialFocus(false);
WebLocalFrameImpl* frame = webViewImpl->mainFrameImpl();
- HTMLDocument* document = toHTMLDocument(frame->frame()->document());
+ Document* document = frame->frame()->document();
// (A) <input>
// (A.1) Focused and value is changed by script.
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698