| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 #include "core/page/scrolling/ScrollState.h" | 121 #include "core/page/scrolling/ScrollState.h" |
| 121 #include "core/page/scrolling/ScrollStateCallback.h" | 122 #include "core/page/scrolling/ScrollStateCallback.h" |
| 122 #include "core/paint/PaintLayer.h" | 123 #include "core/paint/PaintLayer.h" |
| 123 #include "core/svg/SVGAElement.h" | 124 #include "core/svg/SVGAElement.h" |
| 124 #include "core/svg/SVGDocumentExtensions.h" | 125 #include "core/svg/SVGDocumentExtensions.h" |
| 125 #include "core/svg/SVGElement.h" | 126 #include "core/svg/SVGElement.h" |
| 126 #include "platform/EventDispatchForbiddenScope.h" | 127 #include "platform/EventDispatchForbiddenScope.h" |
| 127 #include "platform/RuntimeEnabledFeatures.h" | 128 #include "platform/RuntimeEnabledFeatures.h" |
| 128 #include "platform/UserGestureIndicator.h" | 129 #include "platform/UserGestureIndicator.h" |
| 129 #include "platform/graphics/CompositorMutableProperties.h" | 130 #include "platform/graphics/CompositorMutableProperties.h" |
| 131 #include "platform/graphics/CompositorMutation.h" |
| 130 #include "platform/scroll/ScrollableArea.h" | 132 #include "platform/scroll/ScrollableArea.h" |
| 131 #include "wtf/BitVector.h" | 133 #include "wtf/BitVector.h" |
| 132 #include "wtf/HashFunctions.h" | 134 #include "wtf/HashFunctions.h" |
| 133 #include "wtf/text/CString.h" | 135 #include "wtf/text/CString.h" |
| 134 #include "wtf/text/StringBuilder.h" | 136 #include "wtf/text/StringBuilder.h" |
| 135 #include "wtf/text/TextPosition.h" | 137 #include "wtf/text/TextPosition.h" |
| 136 | 138 |
| 137 namespace blink { | 139 namespace blink { |
| 138 | 140 |
| 139 namespace { | 141 namespace { |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 } | 948 } |
| 947 | 949 |
| 948 void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) | 950 void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) |
| 949 { | 951 { |
| 950 ElementRareData& rareData = *elementRareData(); | 952 ElementRareData& rareData = *elementRareData(); |
| 951 rareData.decrementCompositorProxiedProperties(mutableProperties); | 953 rareData.decrementCompositorProxiedProperties(mutableProperties); |
| 952 if (!rareData.proxiedPropertyCounts()) | 954 if (!rareData.proxiedPropertyCounts()) |
| 953 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat
e(StyleChangeReason::CompositorProxy)); | 955 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat
e(StyleChangeReason::CompositorProxy)); |
| 954 } | 956 } |
| 955 | 957 |
| 958 void Element::updateFromCompositorMutation(const CompositorMutation& mutation) |
| 959 { |
| 960 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "Element::updat
eFromCompositorMutation"); |
| 961 if (mutation.isOpacityMutated() || mutation.isTransformMutated()) |
| 962 ensureElementAnimations().customCompositorAnimations().applyUpdate(*this
, mutation); |
| 963 } |
| 964 |
| 956 uint32_t Element::compositorMutableProperties() const | 965 uint32_t Element::compositorMutableProperties() const |
| 957 { | 966 { |
| 958 if (!hasRareData()) | 967 if (!hasRareData()) |
| 959 return CompositorMutableProperty::kNone; | 968 return CompositorMutableProperty::kNone; |
| 960 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo
unts()) | 969 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo
unts()) |
| 961 return set->proxiedProperties(); | 970 return set->proxiedProperties(); |
| 962 return CompositorMutableProperty::kNone; | 971 return CompositorMutableProperty::kNone; |
| 963 } | 972 } |
| 964 | 973 |
| 965 bool Element::hasNonEmptyLayoutSize() const | 974 bool Element::hasNonEmptyLayoutSize() const |
| (...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3672 | 3681 |
| 3673 DEFINE_TRACE(Element) | 3682 DEFINE_TRACE(Element) |
| 3674 { | 3683 { |
| 3675 if (hasRareData()) | 3684 if (hasRareData()) |
| 3676 visitor->trace(elementRareData()); | 3685 visitor->trace(elementRareData()); |
| 3677 visitor->trace(m_elementData); | 3686 visitor->trace(m_elementData); |
| 3678 ContainerNode::trace(visitor); | 3687 ContainerNode::trace(visitor); |
| 3679 } | 3688 } |
| 3680 | 3689 |
| 3681 } // namespace blink | 3690 } // namespace blink |
| OLD | NEW |