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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 #include "core/page/SpatialNavigation.h" | 116 #include "core/page/SpatialNavigation.h" |
117 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" | 117 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" |
118 #include "core/page/scrolling/ScrollState.h" | 118 #include "core/page/scrolling/ScrollState.h" |
119 #include "core/page/scrolling/ScrollStateCallback.h" | 119 #include "core/page/scrolling/ScrollStateCallback.h" |
120 #include "core/paint/PaintLayer.h" | 120 #include "core/paint/PaintLayer.h" |
121 #include "core/svg/SVGDocumentExtensions.h" | 121 #include "core/svg/SVGDocumentExtensions.h" |
122 #include "core/svg/SVGElement.h" | 122 #include "core/svg/SVGElement.h" |
123 #include "platform/EventDispatchForbiddenScope.h" | 123 #include "platform/EventDispatchForbiddenScope.h" |
124 #include "platform/RuntimeEnabledFeatures.h" | 124 #include "platform/RuntimeEnabledFeatures.h" |
125 #include "platform/UserGestureIndicator.h" | 125 #include "platform/UserGestureIndicator.h" |
| 126 #include "platform/graphics/CompositorMutableProperties.h" |
126 #include "platform/scroll/ScrollableArea.h" | 127 #include "platform/scroll/ScrollableArea.h" |
127 #include "wtf/BitVector.h" | 128 #include "wtf/BitVector.h" |
128 #include "wtf/HashFunctions.h" | 129 #include "wtf/HashFunctions.h" |
129 #include "wtf/text/CString.h" | 130 #include "wtf/text/CString.h" |
130 #include "wtf/text/StringBuilder.h" | 131 #include "wtf/text/StringBuilder.h" |
131 #include "wtf/text/TextPosition.h" | 132 #include "wtf/text/TextPosition.h" |
132 | 133 |
133 namespace blink { | 134 namespace blink { |
134 | 135 |
135 namespace { | 136 namespace { |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 { | 990 { |
990 ElementRareData& rareData = *elementRareData(); | 991 ElementRareData& rareData = *elementRareData(); |
991 rareData.decrementCompositorProxiedProperties(mutableProperties); | 992 rareData.decrementCompositorProxiedProperties(mutableProperties); |
992 if (!rareData.proxiedPropertyCounts()) | 993 if (!rareData.proxiedPropertyCounts()) |
993 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat
e(StyleChangeReason::CompositorProxy)); | 994 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::creat
e(StyleChangeReason::CompositorProxy)); |
994 } | 995 } |
995 | 996 |
996 uint32_t Element::compositorMutableProperties() const | 997 uint32_t Element::compositorMutableProperties() const |
997 { | 998 { |
998 if (!hasRareData()) | 999 if (!hasRareData()) |
999 return WebCompositorMutablePropertyNone; | 1000 return CompositorMutableProperty::kNone; |
1000 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo
unts()) | 1001 if (CompositorProxiedPropertySet* set = elementRareData()->proxiedPropertyCo
unts()) |
1001 return set->proxiedProperties(); | 1002 return set->proxiedProperties(); |
1002 return WebCompositorMutablePropertyNone; | 1003 return CompositorMutableProperty::kNone; |
1003 } | 1004 } |
1004 | 1005 |
1005 bool Element::hasNonEmptyLayoutSize() const | 1006 bool Element::hasNonEmptyLayoutSize() const |
1006 { | 1007 { |
1007 document().updateLayoutIgnorePendingStylesheets(); | 1008 document().updateLayoutIgnorePendingStylesheets(); |
1008 | 1009 |
1009 if (LayoutBoxModelObject* box = layoutBoxModelObject()) | 1010 if (LayoutBoxModelObject* box = layoutBoxModelObject()) |
1010 return box->hasNonEmptyLayoutSize(); | 1011 return box->hasNonEmptyLayoutSize(); |
1011 return false; | 1012 return false; |
1012 } | 1013 } |
(...skipping 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3650 { | 3651 { |
3651 #if ENABLE(OILPAN) | 3652 #if ENABLE(OILPAN) |
3652 if (hasRareData()) | 3653 if (hasRareData()) |
3653 visitor->trace(elementRareData()); | 3654 visitor->trace(elementRareData()); |
3654 visitor->trace(m_elementData); | 3655 visitor->trace(m_elementData); |
3655 #endif | 3656 #endif |
3656 ContainerNode::trace(visitor); | 3657 ContainerNode::trace(visitor); |
3657 } | 3658 } |
3658 | 3659 |
3659 } // namespace blink | 3660 } // namespace blink |
OLD | NEW |