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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp

Issue 1979843002: Remove C::swap(C*) where C = Hash{Map,Set}<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HeapTest compile fixes Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/HeapAllocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 { 631 {
632 if (m_state->booleanProperty(CSSAgentState::cssAgentEnabled, false)) 632 if (m_state->booleanProperty(CSSAgentState::cssAgentEnabled, false))
633 wasEnabled(); 633 wasEnabled();
634 } 634 }
635 635
636 void InspectorCSSAgent::flushPendingProtocolNotifications() 636 void InspectorCSSAgent::flushPendingProtocolNotifications()
637 { 637 {
638 if (!m_invalidatedDocuments.size()) 638 if (!m_invalidatedDocuments.size())
639 return; 639 return;
640 HeapHashSet<Member<Document>> invalidatedDocuments; 640 HeapHashSet<Member<Document>> invalidatedDocuments;
641 m_invalidatedDocuments.swap(&invalidatedDocuments); 641 m_invalidatedDocuments.swap(invalidatedDocuments);
642 for (Document* document: invalidatedDocuments) 642 for (Document* document: invalidatedDocuments)
643 updateActiveStyleSheets(document, ExistingFrontendRefresh); 643 updateActiveStyleSheets(document, ExistingFrontendRefresh);
644 } 644 }
645 645
646 void InspectorCSSAgent::reset() 646 void InspectorCSSAgent::reset()
647 { 647 {
648 m_idToInspectorStyleSheet.clear(); 648 m_idToInspectorStyleSheet.clear();
649 m_idToInspectorStyleSheetForInlineStyle.clear(); 649 m_idToInspectorStyleSheetForInlineStyle.clear();
650 m_cssStyleSheetToInspectorStyleSheet.clear(); 650 m_cssStyleSheetToInspectorStyleSheet.clear();
651 m_documentToCSSStyleSheets.clear(); 651 m_documentToCSSStyleSheets.clear();
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); 2074 visitor->trace(m_cssStyleSheetToInspectorStyleSheet);
2075 visitor->trace(m_documentToCSSStyleSheets); 2075 visitor->trace(m_documentToCSSStyleSheets);
2076 visitor->trace(m_invalidatedDocuments); 2076 visitor->trace(m_invalidatedDocuments);
2077 visitor->trace(m_nodeToInspectorStyleSheet); 2077 visitor->trace(m_nodeToInspectorStyleSheet);
2078 visitor->trace(m_documentToViaInspectorStyleSheet); 2078 visitor->trace(m_documentToViaInspectorStyleSheet);
2079 visitor->trace(m_inspectorUserAgentStyleSheet); 2079 visitor->trace(m_inspectorUserAgentStyleSheet);
2080 InspectorBaseAgent::trace(visitor); 2080 InspectorBaseAgent::trace(visitor);
2081 } 2081 }
2082 2082
2083 } // namespace blink 2083 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/HeapAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698