| 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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 scrollBy(x, y, scrollBehavior); | 1372 scrollBy(x, y, scrollBehavior); |
| 1373 } | 1373 } |
| 1374 | 1374 |
| 1375 void LocalDOMWindow::scrollTo(double x, double y, ScrollBehavior scrollBehavior)
const | 1375 void LocalDOMWindow::scrollTo(double x, double y, ScrollBehavior scrollBehavior)
const |
| 1376 { | 1376 { |
| 1377 if (!isCurrentlyDisplayedInFrame()) | 1377 if (!isCurrentlyDisplayedInFrame()) |
| 1378 return; | 1378 return; |
| 1379 | 1379 |
| 1380 document()->updateLayoutIgnorePendingStylesheets(); | 1380 document()->updateLayoutIgnorePendingStylesheets(); |
| 1381 | 1381 |
| 1382 RefPtr<FrameView> view = m_frame->view(); | 1382 RefPtrWillBeRawPtr<FrameView> view = m_frame->view(); |
| 1383 if (!view) | 1383 if (!view) |
| 1384 return; | 1384 return; |
| 1385 | 1385 |
| 1386 IntPoint layoutPos(static_cast<int>(x * m_frame->pageZoomFactor()), static_c
ast<int>(y * m_frame->pageZoomFactor())); | 1386 IntPoint layoutPos(static_cast<int>(x * m_frame->pageZoomFactor()), static_c
ast<int>(y * m_frame->pageZoomFactor())); |
| 1387 view->setScrollPosition(layoutPos, scrollBehavior); | 1387 view->setScrollPosition(layoutPos, scrollBehavior); |
| 1388 } | 1388 } |
| 1389 | 1389 |
| 1390 void LocalDOMWindow::scrollTo(double x, double y, const ScrollOptions& scrollOpt
ions, ExceptionState& exceptionState) const | 1390 void LocalDOMWindow::scrollTo(double x, double y, const ScrollOptions& scrollOpt
ions, ExceptionState& exceptionState) const |
| 1391 { | 1391 { |
| 1392 ScrollBehavior scrollBehavior = ScrollBehaviorAuto; | 1392 ScrollBehavior scrollBehavior = ScrollBehaviorAuto; |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1908 FrameDestructionObserver::trace(visitor); | 1908 FrameDestructionObserver::trace(visitor); |
| 1909 } | 1909 } |
| 1910 | 1910 |
| 1911 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) | 1911 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
| 1912 { | 1912 { |
| 1913 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1913 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
| 1914 return v8::Handle<v8::Object>(); | 1914 return v8::Handle<v8::Object>(); |
| 1915 } | 1915 } |
| 1916 | 1916 |
| 1917 } // namespace blink | 1917 } // namespace blink |
| OLD | NEW |