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

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/SnapCoordinatorTest.cpp

Issue 2348993002: Don't include LayoutObject.h from FrameView.h (Closed)
Patch Set: Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "SnapCoordinator.h" 5 #include "SnapCoordinator.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/html/HTMLElement.h"
10 #include "core/style/ComputedStyle.h" 11 #include "core/style/ComputedStyle.h"
11 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
12 #include "platform/scroll/ScrollTypes.h" 13 #include "platform/scroll/ScrollTypes.h"
13 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 14 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
14 #include <gtest/gtest.h> 15 #include <gtest/gtest.h>
15 #include <memory> 16 #include <memory>
16 17
17 namespace blink { 18 namespace blink {
18 19
19 using HTMLNames::styleAttr; 20 using HTMLNames::styleAttr;
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 Vector<double> result = snapOffsets(body, HorizontalScrollbar); 380 Vector<double> result = snapOffsets(body, HorizontalScrollbar);
380 EXPECT_EQ(5, result[0]); 381 EXPECT_EQ(5, result[0]);
381 EXPECT_EQ(10, result[1]); 382 EXPECT_EQ(10, result[1]);
382 result = snapOffsets(body, VerticalScrollbar); 383 result = snapOffsets(body, VerticalScrollbar);
383 EXPECT_EQ(6, result[0]); 384 EXPECT_EQ(6, result[0]);
384 EXPECT_EQ(11, result[1]); 385 EXPECT_EQ(11, result[1]);
385 } 386 }
386 387
387 388
388 } // namespace 389 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698