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

Side by Side Diff: third_party/WebKit/Source/core/editing/FrameSelectionTest.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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/editing/FrameSelection.h" 5 #include "core/editing/FrameSelection.h"
6 6
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 7 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/dom/Text.h" 10 #include "core/dom/Text.h"
11 #include "core/editing/EditingTestBase.h" 11 #include "core/editing/EditingTestBase.h"
12 #include "core/editing/FrameCaret.h" 12 #include "core/editing/FrameCaret.h"
13 #include "core/frame/FrameView.h" 13 #include "core/frame/FrameView.h"
14 #include "core/html/HTMLBodyElement.h" 14 #include "core/html/HTMLBodyElement.h"
15 #include "core/html/HTMLDocument.h"
16 #include "core/layout/LayoutView.h" 15 #include "core/layout/LayoutView.h"
17 #include "core/paint/PaintInfo.h" 16 #include "core/paint/PaintInfo.h"
18 #include "core/paint/PaintLayer.h" 17 #include "core/paint/PaintLayer.h"
19 #include "core/testing/DummyPageHolder.h" 18 #include "core/testing/DummyPageHolder.h"
20 #include "platform/graphics/paint/DrawingRecorder.h" 19 #include "platform/graphics/paint/DrawingRecorder.h"
21 #include "platform/graphics/paint/PaintController.h" 20 #include "platform/graphics/paint/PaintController.h"
22 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
23 #include "wtf/PassRefPtr.h" 22 #include "wtf/PassRefPtr.h"
24 #include "wtf/RefPtr.h" 23 #include "wtf/RefPtr.h"
25 #include "wtf/StdLibExtras.h" 24 #include "wtf/StdLibExtras.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 selection().updateIfNeeded(); 260 selection().updateIfNeeded();
262 261
263 // TODO(yosin): Once lazy canonicalization implemented, selection.start 262 // TODO(yosin): Once lazy canonicalization implemented, selection.start
264 // should be Position(HTML, 0). 263 // should be Position(HTML, 0).
265 EXPECT_EQ(Position(), selection().start()) 264 EXPECT_EQ(Position(), selection().start())
266 << "updateIfNeeded() makes selection to null."; 265 << "updateIfNeeded() makes selection to null.";
267 EXPECT_EQ(selection().start(), caretPosition().position()); 266 EXPECT_EQ(selection().start(), caretPosition().position());
268 } 267 }
269 268
270 } // namespace blink 269 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698