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