| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 */ | 42 */ |
| 43 | 43 |
| 44 #include "config.h" | 44 #include "config.h" |
| 45 #include "core/rendering/RenderLayer.h" | 45 #include "core/rendering/RenderLayer.h" |
| 46 | 46 |
| 47 #include "core/css/PseudoStyleRequest.h" | 47 #include "core/css/PseudoStyleRequest.h" |
| 48 #include "core/dom/shadow/ShadowRoot.h" | 48 #include "core/dom/shadow/ShadowRoot.h" |
| 49 #include "core/editing/FrameSelection.h" | 49 #include "core/editing/FrameSelection.h" |
| 50 #include "core/frame/FrameView.h" | 50 #include "core/frame/FrameView.h" |
| 51 #include "core/frame/LocalFrame.h" | 51 #include "core/frame/LocalFrame.h" |
| 52 #include "core/frame/Settings.h" |
| 52 #include "core/html/HTMLFrameOwnerElement.h" | 53 #include "core/html/HTMLFrameOwnerElement.h" |
| 53 #include "core/inspector/InspectorInstrumentation.h" | 54 #include "core/inspector/InspectorInstrumentation.h" |
| 54 #include "core/page/EventHandler.h" | 55 #include "core/page/EventHandler.h" |
| 55 #include "core/page/FocusController.h" | 56 #include "core/page/FocusController.h" |
| 56 #include "core/page/Page.h" | 57 #include "core/page/Page.h" |
| 57 #include "core/page/scrolling/ScrollingCoordinator.h" | 58 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 58 #include "core/rendering/RenderGeometryMap.h" | 59 #include "core/rendering/RenderGeometryMap.h" |
| 59 #include "core/rendering/RenderScrollbar.h" | 60 #include "core/rendering/RenderScrollbar.h" |
| 60 #include "core/rendering/RenderScrollbarPart.h" | 61 #include "core/rendering/RenderScrollbarPart.h" |
| 61 #include "core/rendering/RenderView.h" | 62 #include "core/rendering/RenderView.h" |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 IntSize RenderLayerScrollableArea::overhangAmount() const | 469 IntSize RenderLayerScrollableArea::overhangAmount() const |
| 469 { | 470 { |
| 470 return IntSize(); | 471 return IntSize(); |
| 471 } | 472 } |
| 472 | 473 |
| 473 IntPoint RenderLayerScrollableArea::lastKnownMousePosition() const | 474 IntPoint RenderLayerScrollableArea::lastKnownMousePosition() const |
| 474 { | 475 { |
| 475 return m_box->frame() ? m_box->frame()->eventHandler().lastKnownMousePositio
n() : IntPoint(); | 476 return m_box->frame() ? m_box->frame()->eventHandler().lastKnownMousePositio
n() : IntPoint(); |
| 476 } | 477 } |
| 477 | 478 |
| 479 bool RenderLayerScrollableArea::scrollAnimatorEnabled() const |
| 480 { |
| 481 return m_box->frame()->settings() && m_box->frame()->settings()->scrollAnima
torEnabled(); |
| 482 } |
| 483 |
| 484 bool RenderLayerScrollableArea::scheduleAnimation() |
| 485 { |
| 486 if (HostWindow* window = m_box->frameView()->hostWindow()) { |
| 487 window->scheduleAnimation(); |
| 488 return true; |
| 489 } |
| 490 return false; |
| 491 } |
| 492 |
| 478 bool RenderLayerScrollableArea::shouldSuspendScrollAnimations() const | 493 bool RenderLayerScrollableArea::shouldSuspendScrollAnimations() const |
| 479 { | 494 { |
| 480 RenderView* view = m_box->view(); | 495 RenderView* view = m_box->view(); |
| 481 if (!view) | 496 if (!view) |
| 482 return true; | 497 return true; |
| 483 return view->frameView()->shouldSuspendScrollAnimations(); | 498 return view->frameView()->shouldSuspendScrollAnimations(); |
| 484 } | 499 } |
| 485 | 500 |
| 486 bool RenderLayerScrollableArea::scrollbarsCanBeActive() const | 501 bool RenderLayerScrollableArea::scrollbarsCanBeActive() const |
| 487 { | 502 { |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 void RenderLayerScrollableArea::setForceNeedsCompositedScrolling(ForceNeedsCompo
sitedScrollingMode mode) | 1535 void RenderLayerScrollableArea::setForceNeedsCompositedScrolling(ForceNeedsCompo
sitedScrollingMode mode) |
| 1521 { | 1536 { |
| 1522 if (m_forceNeedsCompositedScrolling == mode) | 1537 if (m_forceNeedsCompositedScrolling == mode) |
| 1523 return; | 1538 return; |
| 1524 | 1539 |
| 1525 m_forceNeedsCompositedScrolling = mode; | 1540 m_forceNeedsCompositedScrolling = mode; |
| 1526 layer()->didUpdateNeedsCompositedScrolling(); | 1541 layer()->didUpdateNeedsCompositedScrolling(); |
| 1527 } | 1542 } |
| 1528 | 1543 |
| 1529 } // Namespace WebCore | 1544 } // Namespace WebCore |
| OLD | NEW |