Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp

Issue 1309983002: Fix fake mouse move event on scroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix dependency Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 viousPaintInvalidationRect()); 416 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->layoutObject()->pre viousPaintInvalidationRectIncludingCompositedScrolling(*paintInvalidationContain er));
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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 return false; 1451 return false;
1452 1452
1453 LocalFrame* frame = box().frame(); 1453 LocalFrame* frame = box().frame();
1454 if (!frame || !frame->isMainFrame() || !frame->settings()) 1454 if (!frame || !frame->isMainFrame() || !frame->settings())
1455 return false; 1455 return false;
1456 1456
1457 return frame->settings()->viewportMetaEnabled(); 1457 return frame->settings()->viewportMetaEnabled();
1458 } 1458 }
1459 1459
1460 } // namespace blink 1460 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/overflow-scroll-fake-mouse-move.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698