| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // The caret rect needs to be invalidated after scrolling | 243 // The caret rect needs to be invalidated after scrolling |
| 244 frame->selection().setCaretRectNeedsUpdate(); | 244 frame->selection().setCaretRectNeedsUpdate(); |
| 245 | 245 |
| 246 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou
sPaintInvalidationRect()); | 246 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou
sPaintInvalidationRect()); |
| 247 | 247 |
| 248 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad(
quadForFakeMouseMoveEvent); | 248 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad(
quadForFakeMouseMoveEvent); |
| 249 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); | 249 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); |
| 250 | 250 |
| 251 if (box().frameView()->isInPerformLayout()) | 251 if (box().frameView()->isInPerformLayout()) |
| 252 box().setShouldDoFullPaintInvalidation(true); | 252 box().setShouldDoFullPaintInvalidation(true); |
| 253 else | |
| 254 box().invalidatePaintUsingContainer(paintInvalidationContainer, layer()-
>renderer()->previousPaintInvalidationRect(), InvalidationScroll); | |
| 255 | 253 |
| 256 // Schedule the scroll DOM event. | 254 // Schedule the scroll DOM event. |
| 257 if (box().node()) | 255 if (box().node()) |
| 258 box().node()->document().enqueueScrollEventForNode(box().node()); | 256 box().node()->document().enqueueScrollEventForNode(box().node()); |
| 259 } | 257 } |
| 260 | 258 |
| 261 IntPoint RenderLayerScrollableArea::scrollPosition() const | 259 IntPoint RenderLayerScrollableArea::scrollPosition() const |
| 262 { | 260 { |
| 263 return IntPoint(m_scrollOffset); | 261 return IntPoint(m_scrollOffset); |
| 264 } | 262 } |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) | 759 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) |
| 762 { | 760 { |
| 763 // We only want to track the topmost scroll child for scrollable areas with | 761 // We only want to track the topmost scroll child for scrollable areas with |
| 764 // overlay scrollbars. | 762 // overlay scrollbars. |
| 765 if (!hasOverlayScrollbars()) | 763 if (!hasOverlayScrollbars()) |
| 766 return; | 764 return; |
| 767 m_nextTopmostScrollChild = scrollChild; | 765 m_nextTopmostScrollChild = scrollChild; |
| 768 } | 766 } |
| 769 | 767 |
| 770 } // namespace blink | 768 } // namespace blink |
| OLD | NEW |