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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // Update regions, scrolling may change the clip of a particular region. | 406 // Update regions, scrolling may change the clip of a particular region. |
407 frameView->updateAnnotatedRegions(); | 407 frameView->updateAnnotatedRegions(); |
408 frameView->setNeedsUpdateWidgetPositions(); | 408 frameView->setNeedsUpdateWidgetPositions(); |
409 updateCompositingLayersAfterScroll(); | 409 updateCompositingLayersAfterScroll(); |
410 } | 410 } |
411 | 411 |
412 const LayoutBoxModelObject* paintInvalidationContainer = box().containerForP
aintInvalidation(); | 412 const LayoutBoxModelObject* paintInvalidationContainer = box().containerForP
aintInvalidation(); |
413 // The caret rect needs to be invalidated after scrolling | 413 // The caret rect needs to be invalidated after scrolling |
414 frame->selection().setCaretRectNeedsUpdate(); | 414 frame->selection().setCaretRectNeedsUpdate(); |
415 | 415 |
416 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->layoutObject()->pre
viousPaintInvalidationRectIncludingCompositedScrolling(*paintInvalidationContain
er)); | 416 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(FloatRect(layer()->layoutObj
ect()->previousPaintInvalidationRectIncludingCompositedScrolling(*paintInvalidat
ionContainer))); |
417 | 417 |
418 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad(
quadForFakeMouseMoveEvent); | 418 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad(
quadForFakeMouseMoveEvent); |
419 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); | 419 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM
oveEvent); |
420 | 420 |
421 bool requiresPaintInvalidation = true; | 421 bool requiresPaintInvalidation = true; |
422 | 422 |
423 if (box().view()->compositor()->inCompositingMode()) { | 423 if (box().view()->compositor()->inCompositingMode()) { |
424 bool onlyScrolledCompositedLayers = scrollsOverflow() | 424 bool onlyScrolledCompositedLayers = scrollsOverflow() |
425 && !layer()->hasVisibleNonLayerContent() | 425 && !layer()->hasVisibleNonLayerContent() |
426 && !layer()->hasNonCompositedChild() | 426 && !layer()->hasNonCompositedChild() |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 return false; | 1471 return false; |
1472 | 1472 |
1473 LocalFrame* frame = box().frame(); | 1473 LocalFrame* frame = box().frame(); |
1474 if (!frame || !frame->isMainFrame() || !frame->settings()) | 1474 if (!frame || !frame->isMainFrame() || !frame->settings()) |
1475 return false; | 1475 return false; |
1476 | 1476 |
1477 return frame->settings()->viewportMetaEnabled(); | 1477 return frame->settings()->viewportMetaEnabled(); |
1478 } | 1478 } |
1479 | 1479 |
1480 } // namespace blink | 1480 } // namespace blink |
OLD | NEW |