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

Side by Side Diff: Source/core/layout/LayerScrollableArea.cpp

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // We don't update compositing layers, because we need to do a deep update f rom the compositing ancestor. 382 // We don't update compositing layers, because we need to do a deep update f rom the compositing ancestor.
383 if (!frameView->isInPerformLayout()) { 383 if (!frameView->isInPerformLayout()) {
384 // If we're in the middle of layout, we'll just update layers once layou t has finished. 384 // If we're in the middle of layout, we'll just update layers once layou t has finished.
385 layer()->updateLayerPositionsAfterOverflowScroll(); 385 layer()->updateLayerPositionsAfterOverflowScroll();
386 // Update regions, scrolling may change the clip of a particular region. 386 // Update regions, scrolling may change the clip of a particular region.
387 frameView->updateAnnotatedRegions(); 387 frameView->updateAnnotatedRegions();
388 frameView->setNeedsUpdateWidgetPositions(); 388 frameView->setNeedsUpdateWidgetPositions();
389 updateCompositingLayersAfterScroll(); 389 updateCompositingLayersAfterScroll();
390 } 390 }
391 391
392 const LayoutLayerModelObject* paintInvalidationContainer = box().containerFo rPaintInvalidation(); 392 const RenderBoxModelObject* paintInvalidationContainer = box().containerForP aintInvalidation();
393 // The caret rect needs to be invalidated after scrolling 393 // The caret rect needs to be invalidated after scrolling
394 frame->selection().setCaretRectNeedsUpdate(); 394 frame->selection().setCaretRectNeedsUpdate();
395 395
396 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou sPaintInvalidationRect()); 396 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou sPaintInvalidationRect());
397 397
398 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad( quadForFakeMouseMoveEvent); 398 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad( quadForFakeMouseMoveEvent);
399 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM oveEvent); 399 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM oveEvent);
400 400
401 bool requiresPaintInvalidation = true; 401 bool requiresPaintInvalidation = true;
402 402
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) 1375 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild)
1376 { 1376 {
1377 // We only want to track the topmost scroll child for scrollable areas with 1377 // We only want to track the topmost scroll child for scrollable areas with
1378 // overlay scrollbars. 1378 // overlay scrollbars.
1379 if (!hasOverlayScrollbars()) 1379 if (!hasOverlayScrollbars())
1380 return; 1380 return;
1381 m_nextTopmostScrollChild = scrollChild; 1381 m_nextTopmostScrollChild = scrollChild;
1382 } 1382 }
1383 1383
1384 } // namespace blink 1384 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698