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 19 matching lines...) Expand all Loading... |
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/XLinkNames.h" | 37 #include "core/XLinkNames.h" |
38 #include "core/XMLNames.h" | 38 #include "core/XMLNames.h" |
39 #include "core/animation/AnimationTimeline.h" | 39 #include "core/animation/AnimationTimeline.h" |
| 40 #include "core/animation/CompositorMutationAnimations.h" |
40 #include "core/animation/css/CSSAnimations.h" | 41 #include "core/animation/css/CSSAnimations.h" |
41 #include "core/css/CSSImageValue.h" | 42 #include "core/css/CSSImageValue.h" |
42 #include "core/css/CSSStyleSheet.h" | 43 #include "core/css/CSSStyleSheet.h" |
43 #include "core/css/CSSValuePool.h" | 44 #include "core/css/CSSValuePool.h" |
44 #include "core/css/PropertySetCSSStyleDeclaration.h" | 45 #include "core/css/PropertySetCSSStyleDeclaration.h" |
45 #include "core/css/StylePropertySet.h" | 46 #include "core/css/StylePropertySet.h" |
46 #include "core/css/parser/CSSParser.h" | 47 #include "core/css/parser/CSSParser.h" |
47 #include "core/css/resolver/StyleResolver.h" | 48 #include "core/css/resolver/StyleResolver.h" |
48 #include "core/css/resolver/StyleResolverParentScope.h" | 49 #include "core/css/resolver/StyleResolverParentScope.h" |
49 #include "core/css/resolver/StyleResolverStats.h" | 50 #include "core/css/resolver/StyleResolverStats.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" | 118 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" |
118 #include "core/page/scrolling/ScrollState.h" | 119 #include "core/page/scrolling/ScrollState.h" |
119 #include "core/page/scrolling/ScrollStateCallback.h" | 120 #include "core/page/scrolling/ScrollStateCallback.h" |
120 #include "core/paint/PaintLayer.h" | 121 #include "core/paint/PaintLayer.h" |
121 #include "core/svg/SVGDocumentExtensions.h" | 122 #include "core/svg/SVGDocumentExtensions.h" |
122 #include "core/svg/SVGElement.h" | 123 #include "core/svg/SVGElement.h" |
123 #include "platform/EventDispatchForbiddenScope.h" | 124 #include "platform/EventDispatchForbiddenScope.h" |
124 #include "platform/RuntimeEnabledFeatures.h" | 125 #include "platform/RuntimeEnabledFeatures.h" |
125 #include "platform/UserGestureIndicator.h" | 126 #include "platform/UserGestureIndicator.h" |
126 #include "platform/graphics/CompositorMutableProperties.h" | 127 #include "platform/graphics/CompositorMutableProperties.h" |
| 128 #include "platform/graphics/CompositorMutation.h" |
127 #include "platform/scroll/ScrollableArea.h" | 129 #include "platform/scroll/ScrollableArea.h" |
128 #include "wtf/BitVector.h" | 130 #include "wtf/BitVector.h" |
129 #include "wtf/HashFunctions.h" | 131 #include "wtf/HashFunctions.h" |
130 #include "wtf/text/CString.h" | 132 #include "wtf/text/CString.h" |
131 #include "wtf/text/StringBuilder.h" | 133 #include "wtf/text/StringBuilder.h" |
132 #include "wtf/text/TextPosition.h" | 134 #include "wtf/text/TextPosition.h" |
133 | 135 |
134 namespace blink { | 136 namespace blink { |
135 | 137 |
136 namespace { | 138 namespace { |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 } | 989 } |
988 | 990 |
989 void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) | 991 void Element::decrementCompositorProxiedProperties(uint32_t mutableProperties) |
990 { | 992 { |
991 ElementRareData& rareData = *elementRareData(); | 993 ElementRareData& rareData = *elementRareData(); |
992 rareData.decrementCompositorProxiedProperties(mutableProperties); | 994 rareData.decrementCompositorProxiedProperties(mutableProperties); |
993 if (!rareData.proxiedPropertyCounts()) | 995 if (!rareData.proxiedPropertyCounts()) |
994 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat
e(StyleChangeReason::CompositorProxy)); | 996 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat
e(StyleChangeReason::CompositorProxy)); |
995 } | 997 } |
996 | 998 |
| 999 void Element::updateFromCompositorMutation(const CompositorMutation& mutation) |
| 1000 { |
| 1001 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), "Element::updat
eFromCompositorMutation"); |
| 1002 ensureElementAnimations().compositorMutationAnimations().applyUpdate(*this,
mutation); |
| 1003 } |
| 1004 |
997 uint32_t Element::compositorMutableProperties() const | 1005 uint32_t Element::compositorMutableProperties() const |
998 { | 1006 { |
999 if (!hasRareData()) | 1007 if (!hasRareData()) |
1000 return CompositorMutableProperty::kNone; | 1008 return CompositorMutableProperty::kNone; |
1001 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo
unts()) | 1009 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo
unts()) |
1002 return set->proxiedProperties(); | 1010 return set->proxiedProperties(); |
1003 return CompositorMutableProperty::kNone; | 1011 return CompositorMutableProperty::kNone; |
1004 } | 1012 } |
1005 | 1013 |
1006 bool Element::hasNonEmptyLayoutSize() const | 1014 bool Element::hasNonEmptyLayoutSize() const |
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3652 { | 3660 { |
3653 #if ENABLE(OILPAN) | 3661 #if ENABLE(OILPAN) |
3654 if (hasRareData()) | 3662 if (hasRareData()) |
3655 visitor->trace(elementRareData()); | 3663 visitor->trace(elementRareData()); |
3656 visitor->trace(m_elementData); | 3664 visitor->trace(m_elementData); |
3657 #endif | 3665 #endif |
3658 ContainerNode::trace(visitor); | 3666 ContainerNode::trace(visitor); |
3659 } | 3667 } |
3660 | 3668 |
3661 } // namespace blink | 3669 } // namespace blink |
OLD | NEW |