Chromium Code Reviews| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 context.current.renderingContextID = 0; | 312 context.current.renderingContextID = 0; |
| 313 } | 313 } |
| 314 } | 314 } |
| 315 | 315 |
| 316 static CompositingReasons compositingReasonsForTransform( | 316 static CompositingReasons compositingReasonsForTransform( |
| 317 const LayoutObject& object) { | 317 const LayoutObject& object) { |
| 318 CompositingReasons compositingReasons = CompositingReasonNone; | 318 CompositingReasons compositingReasons = CompositingReasonNone; |
| 319 if (CompositingReasonFinder::requiresCompositingForTransform(object)) | 319 if (CompositingReasonFinder::requiresCompositingForTransform(object)) |
| 320 compositingReasons |= CompositingReason3DTransform; | 320 compositingReasons |= CompositingReason3DTransform; |
| 321 | 321 |
| 322 if (CompositingReasonFinder::requiresCompositingForAnimation( | |
|
wkorman
2016/12/15 23:06:00
Are we not using CompositingReasonFinder::potentia
| |
| 323 object.styleRef())) | |
| 324 compositingReasons |= CompositingReasonActiveAnimation; | |
| 325 | |
| 322 if (object.styleRef().hasWillChangeCompositingHint() && | 326 if (object.styleRef().hasWillChangeCompositingHint() && |
| 323 !object.styleRef().subtreeWillChangeContents()) | 327 !object.styleRef().subtreeWillChangeContents()) |
| 324 compositingReasons |= CompositingReasonWillChangeCompositingHint; | 328 compositingReasons |= CompositingReasonWillChangeCompositingHint; |
| 325 | 329 |
| 326 return compositingReasons; | 330 return compositingReasons; |
| 327 } | 331 } |
| 328 | 332 |
| 329 void PaintPropertyTreeBuilder::updateTransform( | 333 void PaintPropertyTreeBuilder::updateTransform( |
| 330 const LayoutObject& object, | 334 const LayoutObject& object, |
| 331 PaintPropertyTreeBuilderContext& context) { | 335 PaintPropertyTreeBuilderContext& context) { |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 952 #endif | 956 #endif |
| 953 | 957 |
| 954 updateOverflowClip(object, context); | 958 updateOverflowClip(object, context); |
| 955 updatePerspective(object, context); | 959 updatePerspective(object, context); |
| 956 updateSvgLocalToBorderBoxTransform(object, context); | 960 updateSvgLocalToBorderBoxTransform(object, context); |
| 957 updateScrollAndScrollTranslation(object, context); | 961 updateScrollAndScrollTranslation(object, context); |
| 958 updateOutOfFlowContext(object, context); | 962 updateOutOfFlowContext(object, context); |
| 959 } | 963 } |
| 960 | 964 |
| 961 } // namespace blink | 965 } // namespace blink |
| OLD | NEW |