| OLD | NEW |
| 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 "config.h" | |
| 6 #include "core/layout/compositing/CompositedLayerMapping.h" | 5 #include "core/layout/compositing/CompositedLayerMapping.h" |
| 7 | 6 |
| 8 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 9 #include "core/layout/LayoutBoxModelObject.h" | 8 #include "core/layout/LayoutBoxModelObject.h" |
| 10 #include "core/layout/LayoutTestHelper.h" | 9 #include "core/layout/LayoutTestHelper.h" |
| 11 #include "core/layout/LayoutView.h" | 10 #include "core/layout/LayoutView.h" |
| 12 #include "core/paint/PaintLayer.h" | 11 #include "core/paint/PaintLayer.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 13 |
| 15 namespace blink { | 14 namespace blink { |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 // Scroll 3000 pixels down to bring the scrollable area to somewhere in the
middle. | 571 // Scroll 3000 pixels down to bring the scrollable area to somewhere in the
middle. |
| 573 frameDocument.view()->setScrollPosition(DoublePoint(0.0, 3000.0), Programmat
icScroll); | 572 frameDocument.view()->setScrollPosition(DoublePoint(0.0, 3000.0), Programmat
icScroll); |
| 574 document().view()->updateAllLifecyclePhases(); | 573 document().view()->updateAllLifecyclePhases(); |
| 575 | 574 |
| 576 ASSERT_TRUE(frameDocument.view()->layoutView()->hasLayer()); | 575 ASSERT_TRUE(frameDocument.view()->layoutView()->hasLayer()); |
| 577 // The width is 485 pixels due to the size of the scrollbar. | 576 // The width is 485 pixels due to the size of the scrollbar. |
| 578 EXPECT_RECT_EQ(IntRect(0, 0, 500, 7500), recomputeInterestRect(frameDocument
.view()->layoutView()->enclosingLayer()->graphicsLayerBacking())); | 577 EXPECT_RECT_EQ(IntRect(0, 0, 500, 7500), recomputeInterestRect(frameDocument
.view()->layoutView()->enclosingLayer()->graphicsLayerBacking())); |
| 579 } | 578 } |
| 580 | 579 |
| 581 } // namespace blink | 580 } // namespace blink |
| OLD | NEW |