| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 IntSize LayerScrollableArea::overhangAmount() const | 478 IntSize LayerScrollableArea::overhangAmount() const |
| 479 { | 479 { |
| 480 return IntSize(); | 480 return IntSize(); |
| 481 } | 481 } |
| 482 | 482 |
| 483 IntPoint LayerScrollableArea::lastKnownMousePosition() const | 483 IntPoint LayerScrollableArea::lastKnownMousePosition() const |
| 484 { | 484 { |
| 485 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition(
) : IntPoint(); | 485 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition(
) : IntPoint(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 bool LayerScrollableArea::scrollAnimatorEnabled() const | |
| 489 { | |
| 490 if (Settings* settings = box().frame()->settings()) | |
| 491 return settings->scrollAnimatorEnabled(); | |
| 492 return false; | |
| 493 } | |
| 494 | |
| 495 bool LayerScrollableArea::shouldSuspendScrollAnimations() const | 488 bool LayerScrollableArea::shouldSuspendScrollAnimations() const |
| 496 { | 489 { |
| 497 RenderView* view = box().view(); | 490 RenderView* view = box().view(); |
| 498 if (!view) | 491 if (!view) |
| 499 return true; | 492 return true; |
| 500 return view->frameView()->shouldSuspendScrollAnimations(); | 493 return view->frameView()->shouldSuspendScrollAnimations(); |
| 501 } | 494 } |
| 502 | 495 |
| 503 bool LayerScrollableArea::scrollbarsCanBeActive() const | 496 bool LayerScrollableArea::scrollbarsCanBeActive() const |
| 504 { | 497 { |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) | 1372 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) |
| 1380 { | 1373 { |
| 1381 // We only want to track the topmost scroll child for scrollable areas with | 1374 // We only want to track the topmost scroll child for scrollable areas with |
| 1382 // overlay scrollbars. | 1375 // overlay scrollbars. |
| 1383 if (!hasOverlayScrollbars()) | 1376 if (!hasOverlayScrollbars()) |
| 1384 return; | 1377 return; |
| 1385 m_nextTopmostScrollChild = scrollChild; | 1378 m_nextTopmostScrollChild = scrollChild; |
| 1386 } | 1379 } |
| 1387 | 1380 |
| 1388 } // namespace blink | 1381 } // namespace blink |
| OLD | NEW |