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

Unified Diff: third_party/WebKit/Source/core/css/DragUpdateTest.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/css/DragUpdateTest.cpp
diff --git a/third_party/WebKit/Source/core/css/DragUpdateTest.cpp b/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
index 14bced50df4b99e1f2cd1d69ec49a1cb452697f3..1be59e987435fe24aebed3b2ab2f8f412b48ccf2 100644
--- a/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
+++ b/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "core/dom/Document.h"
#include "core/dom/Element.h"
#include "core/dom/StyleEngine.h"
#include "core/frame/FrameView.h"
-#include "core/html/HTMLDocument.h"
-#include "core/html/HTMLElement.h"
#include "core/layout/LayoutObject.h"
#include "core/testing/DummyPageHolder.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -20,7 +19,7 @@ TEST(DragUpdateTest, AffectedByDragUpdate)
// single element style recalc.
std::unique_ptr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
- HTMLDocument& document = toHTMLDocument(dummyPageHolder->document());
+ Document& document = dummyPageHolder->document();
document.documentElement()->setInnerHTML("<style>div {width:100px;height:100px} div:-webkit-drag { background-color: green }</style>"
"<div>"
"<span></span>"
@@ -46,7 +45,7 @@ TEST(DragUpdateTest, ChildAffectedByDragUpdate)
// single element style recalc.
std::unique_ptr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
- HTMLDocument& document = toHTMLDocument(dummyPageHolder->document());
+ Document& document = dummyPageHolder->document();
document.documentElement()->setInnerHTML("<style>div {width:100px;height:100px} div:-webkit-drag .drag { background-color: green }</style>"
"<div>"
"<span></span>"
@@ -72,7 +71,7 @@ TEST(DragUpdateTest, SiblingAffectedByDragUpdate)
// single element style recalc.
std::unique_ptr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
- HTMLDocument& document = toHTMLDocument(dummyPageHolder->document());
+ Document& document = dummyPageHolder->document();
document.documentElement()->setInnerHTML("<style>div {width:100px;height:100px} div:-webkit-drag + .drag { background-color: green }</style>"
"<div>"
"<span></span>"

Powered by Google App Engine
This is Rietveld 408576698