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

Side by Side Diff: sky/engine/core/rendering/RenderLayerScrollableArea.cpp

Issue 682263003: Remove RenderWidget. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/PaintInfo.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ScrollLayer", "data", InspectorScrollLayerEvent::data(&box())); 336 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ScrollLayer", "data", InspectorScrollLayerEvent::data(&box()));
337 337
338 const RenderLayerModelObject* paintInvalidationContainer = box().containerFo rPaintInvalidation(); 338 const RenderLayerModelObject* paintInvalidationContainer = box().containerFo rPaintInvalidation();
339 339
340 // Update the positions of our child layers (if needed as only fixed layers should be impacted by a scroll). 340 // Update the positions of our child layers (if needed as only fixed layers should be impacted by a scroll).
341 // We don't update compositing layers, because we need to do a deep update f rom the compositing ancestor. 341 // We don't update compositing layers, because we need to do a deep update f rom the compositing ancestor.
342 if (!frameView->isInPerformLayout()) { 342 if (!frameView->isInPerformLayout()) {
343 // If we're in the middle of layout, we'll just update layers once layou t has finished. 343 // If we're in the middle of layout, we'll just update layers once layou t has finished.
344 layer()->clipper().clearClipRectsIncludingDescendants(); 344 layer()->clipper().clearClipRectsIncludingDescendants();
345 box().setPreviousPaintInvalidationRect(box().boundsRectForPaintInvalidat ion(paintInvalidationContainer)); 345 box().setPreviousPaintInvalidationRect(box().boundsRectForPaintInvalidat ion(paintInvalidationContainer));
346 // Update regions, scrolling may change the clip of a particular region.
347 frameView->setNeedsUpdateWidgetPositions();
348 updateCompositingLayersAfterScroll(); 346 updateCompositingLayersAfterScroll();
349 } 347 }
350 348
351 // The caret rect needs to be invalidated after scrolling 349 // The caret rect needs to be invalidated after scrolling
352 frame->selection().setCaretRectNeedsUpdate(); 350 frame->selection().setCaretRectNeedsUpdate();
353 351
354 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou sPaintInvalidationRect()); 352 FloatQuad quadForFakeMouseMoveEvent = FloatQuad(layer()->renderer()->previou sPaintInvalidationRect());
355 353
356 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad( quadForFakeMouseMoveEvent); 354 quadForFakeMouseMoveEvent = paintInvalidationContainer->localToAbsoluteQuad( quadForFakeMouseMoveEvent);
357 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM oveEvent); 355 frame->eventHandler().dispatchFakeMouseMoveEventSoonInQuad(quadForFakeMouseM oveEvent);
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) 1320 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild)
1323 { 1321 {
1324 // We only want to track the topmost scroll child for scrollable areas with 1322 // We only want to track the topmost scroll child for scrollable areas with
1325 // overlay scrollbars. 1323 // overlay scrollbars.
1326 if (!hasOverlayScrollbars()) 1324 if (!hasOverlayScrollbars())
1327 return; 1325 return;
1328 m_nextTopmostScrollChild = scrollChild; 1326 m_nextTopmostScrollChild = scrollChild;
1329 } 1327 }
1330 1328
1331 } // namespace blink 1329 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/PaintInfo.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698