OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |