OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 return ruleSetsCustomProperty; | 138 return ruleSetsCustomProperty; |
139 } | 139 } |
140 | 140 |
141 } // namespace | 141 } // namespace |
142 | 142 |
143 using namespace HTMLNames; | 143 using namespace HTMLNames; |
144 | 144 |
145 ComputedStyle* StyleResolver::s_styleNotYetAvailable; | 145 ComputedStyle* StyleResolver::s_styleNotYetAvailable; |
146 | 146 |
147 static StylePropertySet* leftToRightDeclaration() { | 147 static StylePropertySet* leftToRightDeclaration() { |
| 148 ALLOW_UNSAFE_SINGLETON() |
148 DEFINE_STATIC_LOCAL(MutableStylePropertySet, leftToRightDecl, | 149 DEFINE_STATIC_LOCAL(MutableStylePropertySet, leftToRightDecl, |
149 (MutableStylePropertySet::create(HTMLQuirksMode))); | 150 (MutableStylePropertySet::create(HTMLQuirksMode))); |
150 if (leftToRightDecl.isEmpty()) | 151 if (leftToRightDecl.isEmpty()) |
151 leftToRightDecl.setProperty(CSSPropertyDirection, CSSValueLtr); | 152 leftToRightDecl.setProperty(CSSPropertyDirection, CSSValueLtr); |
152 return &leftToRightDecl; | 153 return &leftToRightDecl; |
153 } | 154 } |
154 | 155 |
155 static StylePropertySet* rightToLeftDeclaration() { | 156 static StylePropertySet* rightToLeftDeclaration() { |
| 157 ALLOW_UNSAFE_SINGLETON() |
156 DEFINE_STATIC_LOCAL(MutableStylePropertySet, rightToLeftDecl, | 158 DEFINE_STATIC_LOCAL(MutableStylePropertySet, rightToLeftDecl, |
157 (MutableStylePropertySet::create(HTMLQuirksMode))); | 159 (MutableStylePropertySet::create(HTMLQuirksMode))); |
158 if (rightToLeftDecl.isEmpty()) | 160 if (rightToLeftDecl.isEmpty()) |
159 rightToLeftDecl.setProperty(CSSPropertyDirection, CSSValueRtl); | 161 rightToLeftDecl.setProperty(CSSPropertyDirection, CSSValueRtl); |
160 return &rightToLeftDecl; | 162 return &rightToLeftDecl; |
161 } | 163 } |
162 | 164 |
163 static void collectScopedResolversForHostedShadowTrees( | 165 static void collectScopedResolversForHostedShadowTrees( |
164 const Element& element, | 166 const Element& element, |
165 HeapVector<Member<ScopedStyleResolver>, 8>& resolvers) { | 167 HeapVector<Member<ScopedStyleResolver>, 8>& resolvers) { |
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 | 1934 |
1933 DEFINE_TRACE(StyleResolver) { | 1935 DEFINE_TRACE(StyleResolver) { |
1934 visitor->trace(m_matchedPropertiesCache); | 1936 visitor->trace(m_matchedPropertiesCache); |
1935 visitor->trace(m_selectorFilter); | 1937 visitor->trace(m_selectorFilter); |
1936 visitor->trace(m_styleSharingLists); | 1938 visitor->trace(m_styleSharingLists); |
1937 visitor->trace(m_document); | 1939 visitor->trace(m_document); |
1938 visitor->trace(m_tracker); | 1940 visitor->trace(m_tracker); |
1939 } | 1941 } |
1940 | 1942 |
1941 } // namespace blink | 1943 } // namespace blink |
OLD | NEW |