| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 IntSize LayerScrollableArea::overhangAmount() const | 481 IntSize LayerScrollableArea::overhangAmount() const |
| 482 { | 482 { |
| 483 return IntSize(); | 483 return IntSize(); |
| 484 } | 484 } |
| 485 | 485 |
| 486 IntPoint LayerScrollableArea::lastKnownMousePosition() const | 486 IntPoint LayerScrollableArea::lastKnownMousePosition() const |
| 487 { | 487 { |
| 488 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition(
) : IntPoint(); | 488 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition(
) : IntPoint(); |
| 489 } | 489 } |
| 490 | 490 |
| 491 bool LayerScrollableArea::scrollAnimatorEnabled() const |
| 492 { |
| 493 if (Settings* settings = box().frame()->settings()) |
| 494 return settings->scrollAnimatorEnabled(); |
| 495 return false; |
| 496 } |
| 497 |
| 491 bool LayerScrollableArea::shouldSuspendScrollAnimations() const | 498 bool LayerScrollableArea::shouldSuspendScrollAnimations() const |
| 492 { | 499 { |
| 493 RenderView* view = box().view(); | 500 RenderView* view = box().view(); |
| 494 if (!view) | 501 if (!view) |
| 495 return true; | 502 return true; |
| 496 return view->frameView()->shouldSuspendScrollAnimations(); | 503 return view->frameView()->shouldSuspendScrollAnimations(); |
| 497 } | 504 } |
| 498 | 505 |
| 499 bool LayerScrollableArea::scrollbarsCanBeActive() const | 506 bool LayerScrollableArea::scrollbarsCanBeActive() const |
| 500 { | 507 { |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) | 1382 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) |
| 1376 { | 1383 { |
| 1377 // We only want to track the topmost scroll child for scrollable areas with | 1384 // We only want to track the topmost scroll child for scrollable areas with |
| 1378 // overlay scrollbars. | 1385 // overlay scrollbars. |
| 1379 if (!hasOverlayScrollbars()) | 1386 if (!hasOverlayScrollbars()) |
| 1380 return; | 1387 return; |
| 1381 m_nextTopmostScrollChild = scrollChild; | 1388 m_nextTopmostScrollChild = scrollChild; |
| 1382 } | 1389 } |
| 1383 | 1390 |
| 1384 } // namespace blink | 1391 } // namespace blink |
| OLD | NEW |