OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 scrollBy(x, y, scrollBehavior); | 1392 scrollBy(x, y, scrollBehavior); |
1393 } | 1393 } |
1394 | 1394 |
1395 void LocalDOMWindow::scrollTo(double x, double y, ScrollBehavior scrollBehavior)
const | 1395 void LocalDOMWindow::scrollTo(double x, double y, ScrollBehavior scrollBehavior)
const |
1396 { | 1396 { |
1397 if (!isCurrentlyDisplayedInFrame()) | 1397 if (!isCurrentlyDisplayedInFrame()) |
1398 return; | 1398 return; |
1399 | 1399 |
1400 document()->updateLayoutIgnorePendingStylesheets(); | 1400 document()->updateLayoutIgnorePendingStylesheets(); |
1401 | 1401 |
1402 RefPtr<FrameView> view = m_frame->view(); | 1402 RefPtrWillBeRawPtr<FrameView> view = m_frame->view(); |
1403 if (!view) | 1403 if (!view) |
1404 return; | 1404 return; |
1405 | 1405 |
1406 DoublePoint layoutPos(x * m_frame->pageZoomFactor(), y * m_frame->pageZoomFa
ctor()); | 1406 DoublePoint layoutPos(x * m_frame->pageZoomFactor(), y * m_frame->pageZoomFa
ctor()); |
1407 view->setScrollPosition(layoutPos, scrollBehavior); | 1407 view->setScrollPosition(layoutPos, scrollBehavior); |
1408 } | 1408 } |
1409 | 1409 |
1410 void LocalDOMWindow::scrollTo(double x, double y, const ScrollOptions& scrollOpt
ions, ExceptionState& exceptionState) const | 1410 void LocalDOMWindow::scrollTo(double x, double y, const ScrollOptions& scrollOpt
ions, ExceptionState& exceptionState) const |
1411 { | 1411 { |
1412 ScrollBehavior scrollBehavior = ScrollBehaviorAuto; | 1412 ScrollBehavior scrollBehavior = ScrollBehaviorAuto; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 FrameDestructionObserver::trace(visitor); | 1919 FrameDestructionObserver::trace(visitor); |
1920 } | 1920 } |
1921 | 1921 |
1922 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) | 1922 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
1923 { | 1923 { |
1924 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1924 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
1925 return v8::Handle<v8::Object>(); | 1925 return v8::Handle<v8::Object>(); |
1926 } | 1926 } |
1927 | 1927 |
1928 } // namespace blink | 1928 } // namespace blink |
OLD | NEW |