| 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, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 if (treeScope == m_document) | 132 if (treeScope == m_document) |
| 133 return documentStyleSheetCollection().styleSheetsForStyleSheetList(); | 133 return documentStyleSheetCollection().styleSheetsForStyleSheetList(); |
| 134 | 134 |
| 135 return ensureStyleSheetCollectionFor(treeScope) | 135 return ensureStyleSheetCollectionFor(treeScope) |
| 136 ->styleSheetsForStyleSheetList(); | 136 ->styleSheetsForStyleSheetList(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void StyleEngine::injectAuthorSheet(StyleSheetContents* authorSheet) { | 139 void StyleEngine::injectAuthorSheet(StyleSheetContents* authorSheet) { |
| 140 m_injectedAuthorStyleSheets.append(TraceWrapperMember<CSSStyleSheet>( | 140 m_injectedAuthorStyleSheets.push_back(TraceWrapperMember<CSSStyleSheet>( |
| 141 this, CSSStyleSheet::create(authorSheet, *m_document))); | 141 this, CSSStyleSheet::create(authorSheet, *m_document))); |
| 142 markDocumentDirty(); | 142 markDocumentDirty(); |
| 143 resolverChanged(AnalyzedStyleUpdate); | 143 resolverChanged(AnalyzedStyleUpdate); |
| 144 } | 144 } |
| 145 | 145 |
| 146 CSSStyleSheet& StyleEngine::ensureInspectorStyleSheet() { | 146 CSSStyleSheet& StyleEngine::ensureInspectorStyleSheet() { |
| 147 if (m_inspectorStyleSheet) | 147 if (m_inspectorStyleSheet) |
| 148 return *m_inspectorStyleSheet; | 148 return *m_inspectorStyleSheet; |
| 149 | 149 |
| 150 StyleSheetContents* contents = | 150 StyleSheetContents* contents = |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 DEFINE_TRACE_WRAPPERS(StyleEngine) { | 1240 DEFINE_TRACE_WRAPPERS(StyleEngine) { |
| 1241 for (auto sheet : m_injectedAuthorStyleSheets) { | 1241 for (auto sheet : m_injectedAuthorStyleSheets) { |
| 1242 visitor->traceWrappers(sheet); | 1242 visitor->traceWrappers(sheet); |
| 1243 } | 1243 } |
| 1244 visitor->traceWrappers(m_documentStyleSheetCollection); | 1244 visitor->traceWrappers(m_documentStyleSheetCollection); |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 } // namespace blink | 1247 } // namespace blink |
| OLD | NEW |