| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |