Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/SpaceSplitString.cpp ('k') | third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698