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

Side by Side Diff: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp

Issue 1209293004: WIP - improve ScrollableArea handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 5 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 | « Source/core/input/EventHandler.cpp ('k') | Source/core/page/Page.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) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 CompositingRequirementsUpdater(m_layoutView, m_compositingReasonFinder). update(updateRoot); 371 CompositingRequirementsUpdater(m_layoutView, m_compositingReasonFinder). update(updateRoot);
372 372
373 CompositingLayerAssigner layerAssigner(this); 373 CompositingLayerAssigner layerAssigner(this);
374 layerAssigner.assign(updateRoot, layersNeedingPaintInvalidation); 374 layerAssigner.assign(updateRoot, layersNeedingPaintInvalidation);
375 375
376 bool layersChanged = layerAssigner.layersChanged(); 376 bool layersChanged = layerAssigner.layersChanged();
377 377
378 { 378 {
379 TRACE_EVENT0("blink", "DeprecatedPaintLayerCompositor::updateAfterCo mpositingChange"); 379 TRACE_EVENT0("blink", "DeprecatedPaintLayerCompositor::updateAfterCo mpositingChange");
380 if (const FrameView::ScrollableAreaSet* scrollableAreas = m_layoutVi ew.frameView()->scrollableAreas()) { 380 if (const FrameView::ScrollableAreaSet* scrollableAreas = m_layoutVi ew.frameView()->scrollableAreas()) {
381 for (auto* scrollableArea : *scrollableAreas) 381 for (ScrollableArea* scrollableArea : *scrollableAreas)
382 layersChanged |= scrollableArea->updateAfterCompositingChang e(); 382 layersChanged |= scrollableArea->updateAfterCompositingChang e();
383 } 383 }
384 } 384 }
385 385
386 if (layersChanged) 386 if (layersChanged)
387 updateType = std::max(updateType, CompositingUpdateRebuildTree); 387 updateType = std::max(updateType, CompositingUpdateRebuildTree);
388 } 388 }
389 389
390 if (updateType != CompositingUpdateNone) { 390 if (updateType != CompositingUpdateNone) {
391 GraphicsLayerUpdater updater; 391 GraphicsLayerUpdater updater;
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 } else if (graphicsLayer == m_scrollLayer.get()) { 1206 } else if (graphicsLayer == m_scrollLayer.get()) {
1207 name = "LocalFrame Scrolling Layer"; 1207 name = "LocalFrame Scrolling Layer";
1208 } else { 1208 } else {
1209 ASSERT_NOT_REACHED(); 1209 ASSERT_NOT_REACHED();
1210 } 1210 }
1211 1211
1212 return name; 1212 return name;
1213 } 1213 }
1214 1214
1215 } // namespace blink 1215 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/input/EventHandler.cpp ('k') | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698