| Index: third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp b/third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp
|
| index d4784ce1fd3e369ed2c60f6aeb4818a6ddb94cc7..69b98751d01350a6785a092f8b5a72d676d464aa 100644
|
| --- a/third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp
|
| @@ -23,12 +23,12 @@
|
|
|
| namespace blink {
|
|
|
| -class ScrollableAreaStub : public NoBaseWillBeGarbageCollectedFinalized<ScrollableAreaStub>, public ScrollableArea {
|
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScrollableAreaStub);
|
| +class ScrollableAreaStub : public GarbageCollectedFinalized<ScrollableAreaStub>, public ScrollableArea {
|
| + USING_GARBAGE_COLLECTED_MIXIN(ScrollableAreaStub);
|
| public:
|
| - static PassOwnPtrWillBeRawPtr<ScrollableAreaStub> create(const IntSize& viewportSize, const IntSize& contentsSize)
|
| + static RawPtr<ScrollableAreaStub> create(const IntSize& viewportSize, const IntSize& contentsSize)
|
| {
|
| - return adoptPtrWillBeNoop(new ScrollableAreaStub(viewportSize, contentsSize));
|
| + return (new ScrollableAreaStub(viewportSize, contentsSize));
|
| }
|
|
|
| void setViewportSize(const IntSize& viewportSize)
|
| @@ -113,9 +113,9 @@ protected:
|
|
|
| class RootFrameViewStub : public ScrollableAreaStub {
|
| public:
|
| - static PassOwnPtrWillBeRawPtr<RootFrameViewStub> create(const IntSize& viewportSize, const IntSize& contentsSize)
|
| + static RawPtr<RootFrameViewStub> create(const IntSize& viewportSize, const IntSize& contentsSize)
|
| {
|
| - return adoptPtrWillBeNoop(new RootFrameViewStub(viewportSize, contentsSize));
|
| + return (new RootFrameViewStub(viewportSize, contentsSize));
|
| }
|
|
|
| DoublePoint maximumScrollPositionDouble() const override
|
| @@ -135,9 +135,9 @@ private:
|
|
|
| class VisualViewportStub : public ScrollableAreaStub {
|
| public:
|
| - static PassOwnPtrWillBeRawPtr<VisualViewportStub> create(const IntSize& viewportSize, const IntSize& contentsSize)
|
| + static RawPtr<VisualViewportStub> create(const IntSize& viewportSize, const IntSize& contentsSize)
|
| {
|
| - return adoptPtrWillBeNoop(new VisualViewportStub(viewportSize, contentsSize));
|
| + return (new VisualViewportStub(viewportSize, contentsSize));
|
| }
|
|
|
| DoublePoint maximumScrollPositionDouble() const override
|
| @@ -189,10 +189,10 @@ protected:
|
| TEST_F(RootFrameViewportTest, UserInputScrollable)
|
| {
|
| IntSize viewportSize(100, 150);
|
| - OwnPtrWillBeRawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| - OwnPtrWillBeRawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
| + RawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| + RawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
|
|
| - OwnPtrWillBeRawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
| + RawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
|
|
| visualViewport->setScale(2);
|
|
|
| @@ -300,10 +300,10 @@ TEST_F(RootFrameViewportTest, UserInputScrollable)
|
| TEST_F(RootFrameViewportTest, TestScrollAnimatorUpdatedBeforeScroll)
|
| {
|
| IntSize viewportSize(100, 150);
|
| - OwnPtrWillBeRawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| - OwnPtrWillBeRawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
| + RawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| + RawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
|
|
| - OwnPtrWillBeRawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
| + RawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
|
|
| visualViewport->setScale(2);
|
|
|
| @@ -339,10 +339,10 @@ TEST_F(RootFrameViewportTest, TestScrollAnimatorUpdatedBeforeScroll)
|
| TEST_F(RootFrameViewportTest, ScrollIntoView)
|
| {
|
| IntSize viewportSize(100, 150);
|
| - OwnPtrWillBeRawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| - OwnPtrWillBeRawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
| + RawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| + RawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
|
|
| - OwnPtrWillBeRawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
| + RawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
|
|
| // Test that the visual viewport is scrolled if the viewport has been
|
| // resized (as is the case when the ChromeOS keyboard comes up) but not
|
| @@ -414,10 +414,10 @@ TEST_F(RootFrameViewportTest, ScrollIntoView)
|
| TEST_F(RootFrameViewportTest, SetScrollPosition)
|
| {
|
| IntSize viewportSize(500, 500);
|
| - OwnPtrWillBeRawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(1000, 2000));
|
| - OwnPtrWillBeRawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
| + RawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(1000, 2000));
|
| + RawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
|
|
| - OwnPtrWillBeRawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
| + RawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
|
|
| visualViewport->setScale(2);
|
|
|
| @@ -449,10 +449,10 @@ TEST_F(RootFrameViewportTest, SetScrollPosition)
|
| TEST_F(RootFrameViewportTest, VisibleContentRect)
|
| {
|
| IntSize viewportSize(500, 401);
|
| - OwnPtrWillBeRawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(1000, 2000));
|
| - OwnPtrWillBeRawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
| + RawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(1000, 2000));
|
| + RawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
|
|
| - OwnPtrWillBeRawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
| + RawPtr<ScrollableArea> rootFrameViewport = RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
|
|
| rootFrameViewport->setScrollPosition(DoublePoint(100, 75), ProgrammaticScroll);
|
|
|
| @@ -474,10 +474,10 @@ TEST_F(RootFrameViewportTest, VisibleContentRect)
|
| TEST_F(RootFrameViewportTest, ViewportScrollOrder)
|
| {
|
| IntSize viewportSize(100, 100);
|
| - OwnPtrWillBeRawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| - OwnPtrWillBeRawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
| + RawPtr<RootFrameViewStub> layoutViewport = RootFrameViewStub::create(viewportSize, IntSize(200, 300));
|
| + RawPtr<VisualViewportStub> visualViewport = VisualViewportStub::create(viewportSize, viewportSize);
|
|
|
| - OwnPtrWillBeRawPtr<ScrollableArea> rootFrameViewport =
|
| + RawPtr<ScrollableArea> rootFrameViewport =
|
| RootFrameViewport::create(*visualViewport.get(), *layoutViewport.get());
|
|
|
| visualViewport->setScale(2);
|
|
|