Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 #include "bindings/core/v8/Dictionary.h" | 29 #include "bindings/core/v8/Dictionary.h" |
| 30 #include "bindings/core/v8/ExceptionMessages.h" | 30 #include "bindings/core/v8/ExceptionMessages.h" |
| 31 #include "bindings/core/v8/ExceptionState.h" | 31 #include "bindings/core/v8/ExceptionState.h" |
| 32 #include "bindings/core/v8/V8DOMActivityLogger.h" | 32 #include "bindings/core/v8/V8DOMActivityLogger.h" |
| 33 #include "bindings/core/v8/V8DOMWrapper.h" | 33 #include "bindings/core/v8/V8DOMWrapper.h" |
| 34 #include "bindings/core/v8/V8PerContextData.h" | 34 #include "bindings/core/v8/V8PerContextData.h" |
| 35 #include "core/CSSValueKeywords.h" | 35 #include "core/CSSValueKeywords.h" |
| 36 #include "core/SVGNames.h" | 36 #include "core/SVGNames.h" |
| 37 #include "core/XMLNames.h" | 37 #include "core/XMLNames.h" |
| 38 #include "core/animation/AnimationTimeline.h" | 38 #include "core/animation/AnimationTimeline.h" |
| 39 #include "core/animation/CustomCompositorAnimations.h" | |
| 39 #include "core/animation/css/CSSAnimations.h" | 40 #include "core/animation/css/CSSAnimations.h" |
| 40 #include "core/css/CSSImageValue.h" | 41 #include "core/css/CSSImageValue.h" |
| 41 #include "core/css/CSSStyleSheet.h" | 42 #include "core/css/CSSStyleSheet.h" |
| 42 #include "core/css/CSSValuePool.h" | 43 #include "core/css/CSSValuePool.h" |
| 43 #include "core/css/PropertySetCSSStyleDeclaration.h" | 44 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 44 #include "core/css/StylePropertySet.h" | 45 #include "core/css/StylePropertySet.h" |
| 45 #include "core/css/parser/CSSParser.h" | 46 #include "core/css/parser/CSSParser.h" |
| 46 #include "core/css/resolver/SelectorFilterParentScope.h" | 47 #include "core/css/resolver/SelectorFilterParentScope.h" |
| 47 #include "core/css/resolver/StyleResolver.h" | 48 #include "core/css/resolver/StyleResolver.h" |
| 48 #include "core/css/resolver/StyleResolverStats.h" | 49 #include "core/css/resolver/StyleResolverStats.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 #include "core/page/scrolling/ScrollState.h" | 120 #include "core/page/scrolling/ScrollState.h" |
| 120 #include "core/page/scrolling/ScrollStateCallback.h" | 121 #include "core/page/scrolling/ScrollStateCallback.h" |
| 121 #include "core/paint/PaintLayer.h" | 122 #include "core/paint/PaintLayer.h" |
| 122 #include "core/svg/SVGAElement.h" | 123 #include "core/svg/SVGAElement.h" |
| 123 #include "core/svg/SVGDocumentExtensions.h" | 124 #include "core/svg/SVGDocumentExtensions.h" |
| 124 #include "core/svg/SVGElement.h" | 125 #include "core/svg/SVGElement.h" |
| 125 #include "platform/EventDispatchForbiddenScope.h" | 126 #include "platform/EventDispatchForbiddenScope.h" |
| 126 #include "platform/RuntimeEnabledFeatures.h" | 127 #include "platform/RuntimeEnabledFeatures.h" |
| 127 #include "platform/UserGestureIndicator.h" | 128 #include "platform/UserGestureIndicator.h" |
| 128 #include "platform/graphics/CompositorMutableProperties.h" | 129 #include "platform/graphics/CompositorMutableProperties.h" |
| 130 #include "platform/graphics/CompositorMutation.h" | |
| 129 #include "platform/scroll/ScrollableArea.h" | 131 #include "platform/scroll/ScrollableArea.h" |
| 130 #include "wtf/BitVector.h" | 132 #include "wtf/BitVector.h" |
| 131 #include "wtf/HashFunctions.h" | 133 #include "wtf/HashFunctions.h" |
| 132 #include "wtf/text/CString.h" | 134 #include "wtf/text/CString.h" |
| 133 #include "wtf/text/StringBuilder.h" | 135 #include "wtf/text/StringBuilder.h" |
| 134 #include "wtf/text/TextPosition.h" | 136 #include "wtf/text/TextPosition.h" |
| 135 | 137 |
| 136 namespace blink { | 138 namespace blink { |
| 137 | 139 |
| 138 namespace { | 140 namespace { |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 943 } | 945 } |
| 944 | 946 |
| 945 void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) | 947 void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) |
| 946 { | 948 { |
| 947 ElementRareData& rareData = *elementRareData(); | 949 ElementRareData& rareData = *elementRareData(); |
| 948 rareData.decrementCompositorProxiedProperties(mutableProperties); | 950 rareData.decrementCompositorProxiedProperties(mutableProperties); |
| 949 if (!rareData.proxiedPropertyCounts()) | 951 if (!rareData.proxiedPropertyCounts()) |
| 950 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat e(StyleChangeReason::CompositorProxy)); | 952 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat e(StyleChangeReason::CompositorProxy)); |
| 951 } | 953 } |
| 952 | 954 |
| 955 void Element::updateFromCompositorMutation(const CompositorMutation& mutation) | |
| 956 { | |
| 957 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "Element::updat eFromCompositorMutation"); | |
| 958 if (mutation.isOpacityMutated() || mutation.isTransformMutated()) | |
|
esprehn
2016/03/22 21:16:49
how do we get here with neither of those mutated?
majidvp
2016/03/23 22:24:53
Scroll{Top,Left} may also be mutated. Those are sy
| |
| 959 ensureElementAnimations().customCompositorAnimations().applyUpdate(*this , mutation); | |
| 960 } | |
| 961 | |
| 953 uint32_t Element::compositorMutableProperties() const | 962 uint32_t Element::compositorMutableProperties() const |
| 954 { | 963 { |
| 955 if (!hasRareData()) | 964 if (!hasRareData()) |
| 956 return CompositorMutableProperty::kNone; | 965 return CompositorMutableProperty::kNone; |
| 957 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo unts()) | 966 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo unts()) |
| 958 return set->proxiedProperties(); | 967 return set->proxiedProperties(); |
| 959 return CompositorMutableProperty::kNone; | 968 return CompositorMutableProperty::kNone; |
| 960 } | 969 } |
| 961 | 970 |
| 962 bool Element::hasNonEmptyLayoutSize() const | 971 bool Element::hasNonEmptyLayoutSize() const |
| (...skipping 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3640 { | 3649 { |
| 3641 #if ENABLE(OILPAN) | 3650 #if ENABLE(OILPAN) |
| 3642 if (hasRareData()) | 3651 if (hasRareData()) |
| 3643 visitor->trace(elementRareData()); | 3652 visitor->trace(elementRareData()); |
| 3644 visitor->trace(m_elementData); | 3653 visitor->trace(m_elementData); |
| 3645 #endif | 3654 #endif |
| 3646 ContainerNode::trace(visitor); | 3655 ContainerNode::trace(visitor); |
| 3647 } | 3656 } |
| 3648 | 3657 |
| 3649 } // namespace blink | 3658 } // namespace blink |
| OLD | NEW |