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

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

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
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 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
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
OLDNEW
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerPainter.cpp ('k') | Source/core/paint/EllipsisBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698