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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp

Issue 2390443002: Unify GeometryPropertyTreeState and PropertyTreeState (Closed)
Patch Set: rebase x2 Created 4 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/PaintLayerPainter.h" 5 #include "core/paint/PaintLayerPainter.h"
6 6
7 #include "core/frame/LocalFrame.h" 7 #include "core/frame/LocalFrame.h"
8 #include "core/layout/LayoutInline.h" 8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/LayoutView.h" 9 #include "core/layout/LayoutView.h"
10 #include "core/paint/ClipPathClipper.h" 10 #include "core/paint/ClipPathClipper.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 413 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
414 const ObjectPaintProperties* objectPaintProperties = 414 const ObjectPaintProperties* objectPaintProperties =
415 m_paintLayer.layoutObject()->objectPaintProperties(); 415 m_paintLayer.layoutObject()->objectPaintProperties();
416 ASSERT(objectPaintProperties && 416 ASSERT(objectPaintProperties &&
417 objectPaintProperties->localBorderBoxProperties()); 417 objectPaintProperties->localBorderBoxProperties());
418 PaintChunkProperties properties( 418 PaintChunkProperties properties(
419 context.getPaintController().currentPaintChunkProperties()); 419 context.getPaintController().currentPaintChunkProperties());
420 auto& localBorderBoxProperties = 420 auto& localBorderBoxProperties =
421 *objectPaintProperties->localBorderBoxProperties(); 421 *objectPaintProperties->localBorderBoxProperties();
422 properties.transform = 422 properties.transform =
423 localBorderBoxProperties.geometryPropertyTreeState.transform; 423 localBorderBoxProperties.propertyTreeState.transform();
424 properties.scroll = localBorderBoxProperties.scroll; 424 properties.scroll = localBorderBoxProperties.propertyTreeState.scroll();
425 properties.clip = localBorderBoxProperties.geometryPropertyTreeState.clip; 425 properties.clip = localBorderBoxProperties.propertyTreeState.clip();
426 properties.effect = 426 properties.effect = localBorderBoxProperties.propertyTreeState.effect();
427 localBorderBoxProperties.geometryPropertyTreeState.effect;
428 properties.backfaceHidden = 427 properties.backfaceHidden =
429 m_paintLayer.layoutObject()->hasHiddenBackface(); 428 m_paintLayer.layoutObject()->hasHiddenBackface();
430 scopedPaintChunkProperties.emplace(context.getPaintController(), 429 scopedPaintChunkProperties.emplace(context.getPaintController(),
431 m_paintLayer, properties); 430 m_paintLayer, properties);
432 } 431 }
433 432
434 bool isPaintingRootLayer = (&m_paintLayer) == paintingInfo.rootLayer; 433 bool isPaintingRootLayer = (&m_paintLayer) == paintingInfo.rootLayer;
435 bool shouldPaintBackground = 434 bool shouldPaintBackground =
436 shouldPaintContent && !selectionOnly && 435 shouldPaintContent && !selectionOnly &&
437 (isPaintingCompositedBackground || 436 (isPaintingCompositedBackground ||
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1046
1048 PaintLayerPaintingInfo paintingInfo(&m_paintLayer, 1047 PaintLayerPaintingInfo paintingInfo(&m_paintLayer,
1049 LayoutRect(enclosingIntRect(damageRect)), 1048 LayoutRect(enclosingIntRect(damageRect)),
1050 paintFlags, LayoutSize()); 1049 paintFlags, LayoutSize());
1051 paintLayer(context, paintingInfo, PaintLayerPaintingOverlayScrollbars); 1050 paintLayer(context, paintingInfo, PaintLayerPaintingOverlayScrollbars);
1052 1051
1053 m_paintLayer.setContainsDirtyOverlayScrollbars(false); 1052 m_paintLayer.setContainsDirtyOverlayScrollbars(false);
1054 } 1053 }
1055 1054
1056 } // namespace blink 1055 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698