| 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 int DeprecatedPaintLayerScrollableArea::visibleWidth() const | 488 int DeprecatedPaintLayerScrollableArea::visibleWidth() const |
| 489 { | 489 { |
| 490 return layer()->size().width(); | 490 return layer()->size().width(); |
| 491 } | 491 } |
| 492 | 492 |
| 493 IntSize DeprecatedPaintLayerScrollableArea::contentsSize() const | 493 IntSize DeprecatedPaintLayerScrollableArea::contentsSize() const |
| 494 { | 494 { |
| 495 return IntSize(scrollWidth(), scrollHeight()); | 495 return IntSize(scrollWidth(), scrollHeight()); |
| 496 } | 496 } |
| 497 | 497 |
| 498 IntSize DeprecatedPaintLayerScrollableArea::overhangAmount() const | |
| 499 { | |
| 500 return IntSize(); | |
| 501 } | |
| 502 | |
| 503 IntPoint DeprecatedPaintLayerScrollableArea::lastKnownMousePosition() const | 498 IntPoint DeprecatedPaintLayerScrollableArea::lastKnownMousePosition() const |
| 504 { | 499 { |
| 505 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition(
) : IntPoint(); | 500 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition(
) : IntPoint(); |
| 506 } | 501 } |
| 507 | 502 |
| 508 bool DeprecatedPaintLayerScrollableArea::scrollAnimatorEnabled() const | 503 bool DeprecatedPaintLayerScrollableArea::scrollAnimatorEnabled() const |
| 509 { | 504 { |
| 510 if (Settings* settings = box().frame()->settings()) | 505 if (Settings* settings = box().frame()->settings()) |
| 511 return settings->scrollAnimatorEnabled(); | 506 return settings->scrollAnimatorEnabled(); |
| 512 return false; | 507 return false; |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) | 1387 void DeprecatedPaintLayerScrollableArea::setTopmostScrollChild(DeprecatedPaintLa
yer* scrollChild) |
| 1393 { | 1388 { |
| 1394 // We only want to track the topmost scroll child for scrollable areas with | 1389 // We only want to track the topmost scroll child for scrollable areas with |
| 1395 // overlay scrollbars. | 1390 // overlay scrollbars. |
| 1396 if (!hasOverlayScrollbars()) | 1391 if (!hasOverlayScrollbars()) |
| 1397 return; | 1392 return; |
| 1398 m_nextTopmostScrollChild = scrollChild; | 1393 m_nextTopmostScrollChild = scrollChild; |
| 1399 } | 1394 } |
| 1400 | 1395 |
| 1401 } // namespace blink | 1396 } // namespace blink |
| OLD | NEW |