| 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 "core/frame/LocalFrame.h" | 5 #include "core/frame/LocalFrame.h" |
| 6 | 6 |
| 7 #include "core/editing/FrameSelection.h" | 7 #include "core/editing/FrameSelection.h" |
| 8 #include "core/frame/FrameHost.h" | |
| 9 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 10 #include "core/frame/PerformanceMonitor.h" | 9 #include "core/frame/PerformanceMonitor.h" |
| 11 #include "core/frame/VisualViewport.h" | 10 #include "core/frame/VisualViewport.h" |
| 12 #include "core/html/HTMLElement.h" | 11 #include "core/html/HTMLElement.h" |
| 13 #include "core/layout/LayoutObject.h" | 12 #include "core/layout/LayoutObject.h" |
| 14 #include "core/testing/DummyPageHolder.h" | 13 #include "core/testing/DummyPageHolder.h" |
| 15 #include "core/timing/Performance.h" | 14 #include "core/timing/Performance.h" |
| 16 #include "platform/DragImage.h" | 15 #include "platform/DragImage.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 17 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 updateAllLifecyclePhases(); | 135 updateAllLifecyclePhases(); |
| 137 const std::unique_ptr<DragImage> image2(frame().dragImageForSelection(0.75f)); | 136 const std::unique_ptr<DragImage> image2(frame().dragImageForSelection(0.75f)); |
| 138 | 137 |
| 139 EXPECT_GT(image1->size().width(), 0); | 138 EXPECT_GT(image1->size().width(), 0); |
| 140 EXPECT_GT(image1->size().height(), 0); | 139 EXPECT_GT(image1->size().height(), 0); |
| 141 EXPECT_EQ(image1->size().width() * 2, image2->size().width()); | 140 EXPECT_EQ(image1->size().width() * 2, image2->size().width()); |
| 142 EXPECT_EQ(image1->size().height() * 2, image2->size().height()); | 141 EXPECT_EQ(image1->size().height() * 2, image2->size().height()); |
| 143 } | 142 } |
| 144 | 143 |
| 145 } // namespace blink | 144 } // namespace blink |
| OLD | NEW |