| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |