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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 10 months 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 370
371 if (m_activeTreeScopes.isEmpty()) 371 if (m_activeTreeScopes.isEmpty())
372 return documentStyleSheetCollection().activeAuthorStyleSheets(); 372 return documentStyleSheetCollection().activeAuthorStyleSheets();
373 373
374 ActiveStyleSheetVector activeStyleSheets; 374 ActiveStyleSheetVector activeStyleSheets;
375 375
376 activeStyleSheets.appendVector( 376 activeStyleSheets.appendVector(
377 documentStyleSheetCollection().activeAuthorStyleSheets()); 377 documentStyleSheetCollection().activeAuthorStyleSheets());
378 for (TreeScope* treeScope : m_activeTreeScopes) { 378 for (TreeScope* treeScope : m_activeTreeScopes) {
379 if (TreeScopeStyleSheetCollection* collection = 379 if (TreeScopeStyleSheetCollection* collection =
380 m_styleSheetCollectionMap.get(treeScope)) 380 m_styleSheetCollectionMap.at(treeScope))
381 activeStyleSheets.appendVector(collection->activeAuthorStyleSheets()); 381 activeStyleSheets.appendVector(collection->activeAuthorStyleSheets());
382 } 382 }
383 383
384 // FIXME: Inspector needs a vector which has all active stylesheets. 384 // FIXME: Inspector needs a vector which has all active stylesheets.
385 // However, creating such a large vector might cause performance regression. 385 // However, creating such a large vector might cause performance regression.
386 // Need to implement some smarter solution. 386 // Need to implement some smarter solution.
387 return activeStyleSheets; 387 return activeStyleSheets;
388 } 388 }
389 389
390 void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) { 390 void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) {
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 } 1154 }
1155 1155
1156 DEFINE_TRACE_WRAPPERS(StyleEngine) { 1156 DEFINE_TRACE_WRAPPERS(StyleEngine) {
1157 for (auto sheet : m_injectedAuthorStyleSheets) { 1157 for (auto sheet : m_injectedAuthorStyleSheets) {
1158 visitor->traceWrappers(sheet); 1158 visitor->traceWrappers(sheet);
1159 } 1159 }
1160 visitor->traceWrappers(m_documentStyleSheetCollection); 1160 visitor->traceWrappers(m_documentStyleSheetCollection);
1161 } 1161 }
1162 1162
1163 } // namespace blink 1163 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/dom/WeakIdentifierMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698