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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 { | 180 { |
181 DocumentOrderedList::iterator begin = m_styleSheetCandidateNodes.begin(); | 181 DocumentOrderedList::iterator begin = m_styleSheetCandidateNodes.begin(); |
182 DocumentOrderedList::iterator end = m_styleSheetCandidateNodes.end(); | 182 DocumentOrderedList::iterator end = m_styleSheetCandidateNodes.end(); |
183 for (DocumentOrderedList::iterator it = begin; it != end; ++it) { | 183 for (DocumentOrderedList::iterator it = begin; it != end; ++it) { |
184 Node* node = *it; | 184 Node* node = *it; |
185 if (isHTMLLinkElement(*node)) | 185 if (isHTMLLinkElement(*node)) |
186 toHTMLLinkElement(node)->enableIfExitTransitionStyle(); | 186 toHTMLLinkElement(node)->enableIfExitTransitionStyle(); |
187 } | 187 } |
188 } | 188 } |
189 | 189 |
| 190 void TreeScopeStyleSheetCollection::disableExitTransitionStylesheets() |
| 191 { |
| 192 DocumentOrderedList::iterator begin = m_styleSheetCandidateNodes.begin(); |
| 193 DocumentOrderedList::iterator end = m_styleSheetCandidateNodes.end(); |
| 194 for (DocumentOrderedList::iterator it = begin; it != end; ++it) { |
| 195 Node* node = *it; |
| 196 if (isHTMLLinkElement(*node)) |
| 197 toHTMLLinkElement(node)->disableIfExitTransitionStyle(); |
| 198 } |
| 199 } |
| 200 |
190 static bool styleSheetsUseRemUnits(const WillBeHeapVector<RefPtrWillBeMember<CSS
StyleSheet> >& sheets) | 201 static bool styleSheetsUseRemUnits(const WillBeHeapVector<RefPtrWillBeMember<CSS
StyleSheet> >& sheets) |
191 { | 202 { |
192 for (unsigned i = 0; i < sheets.size(); ++i) { | 203 for (unsigned i = 0; i < sheets.size(); ++i) { |
193 if (sheets[i]->contents()->usesRemUnits()) | 204 if (sheets[i]->contents()->usesRemUnits()) |
194 return true; | 205 return true; |
195 } | 206 } |
196 return false; | 207 return false; |
197 } | 208 } |
198 | 209 |
199 void TreeScopeStyleSheetCollection::updateUsesRemUnits() | 210 void TreeScopeStyleSheetCollection::updateUsesRemUnits() |
200 { | 211 { |
201 m_usesRemUnits = styleSheetsUseRemUnits(m_activeAuthorStyleSheets); | 212 m_usesRemUnits = styleSheetsUseRemUnits(m_activeAuthorStyleSheets); |
202 } | 213 } |
203 | 214 |
204 void TreeScopeStyleSheetCollection::trace(Visitor* visitor) | 215 void TreeScopeStyleSheetCollection::trace(Visitor* visitor) |
205 { | 216 { |
206 visitor->trace(m_treeScope); | 217 visitor->trace(m_treeScope); |
207 visitor->trace(m_styleSheetCandidateNodes); | 218 visitor->trace(m_styleSheetCandidateNodes); |
208 StyleSheetCollection::trace(visitor); | 219 StyleSheetCollection::trace(visitor); |
209 } | 220 } |
210 | 221 |
211 } | 222 } |
OLD | NEW |