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

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

Issue 2292273003: Define contentsProperties on ObjectPaintProperties, for use in paint invalidation. (Closed)
Patch Set: none Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/PaintPropertyTreeBuilder.h" 5 #include "core/paint/PaintPropertyTreeBuilder.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/layout/LayoutInline.h" 10 #include "core/layout/LayoutInline.h"
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 void PaintPropertyTreeBuilder::buildTreeNodesForChildren(const LayoutObject& obj ect, PaintPropertyTreeBuilderContext& context) 480 void PaintPropertyTreeBuilder::buildTreeNodesForChildren(const LayoutObject& obj ect, PaintPropertyTreeBuilderContext& context)
481 { 481 {
482 if (!object.isBoxModelObject() && !object.isSVG()) 482 if (!object.isBoxModelObject() && !object.isSVG())
483 return; 483 return;
484 484
485 updateOverflowClip(object, context); 485 updateOverflowClip(object, context);
486 updatePerspective(object, context); 486 updatePerspective(object, context);
487 updateSvgLocalToBorderBoxTransform(object, context); 487 updateSvgLocalToBorderBoxTransform(object, context);
488 updateScrollTranslation(object, context); 488 updateScrollTranslation(object, context);
489
490 if (object.objectPaintProperties()) {
491 std::unique_ptr<PropertyTreeState> contentsProperties =
492 wrapUnique(new PropertyTreeState(context.current.transform, context. current.clip, context.currentEffect));
493 object.getMutableForPainting().objectPaintProperties()->setContentsPrope rties(std::move(contentsProperties));
494 }
495
489 updateOutOfFlowContext(object, context); 496 updateOutOfFlowContext(object, context);
490 } 497 }
491 498
492 } // namespace blink 499 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698