| 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 | 809 |
| 810 documentCSSStyleSheets->erase(cssStyleSheet); | 810 documentCSSStyleSheets->erase(cssStyleSheet); |
| 811 if (m_idToInspectorStyleSheet.contains(inspectorStyleSheet->id())) { | 811 if (m_idToInspectorStyleSheet.contains(inspectorStyleSheet->id())) { |
| 812 String id = unbindStyleSheet(inspectorStyleSheet); | 812 String id = unbindStyleSheet(inspectorStyleSheet); |
| 813 if (frontend()) | 813 if (frontend()) |
| 814 frontend()->styleSheetRemoved(id); | 814 frontend()->styleSheetRemoved(id); |
| 815 } | 815 } |
| 816 } | 816 } |
| 817 | 817 |
| 818 for (CSSStyleSheet* cssStyleSheet : addedSheets) { | 818 for (CSSStyleSheet* cssStyleSheet : addedSheets) { |
| 819 InspectorStyleSheet* newStyleSheet = bindStyleSheet(cssStyleSheet); | 819 InspectorStyleSheet* newStyleSheet = bindStyleSheet(cssStyleSheet); |
| 820 documentCSSStyleSheets->insert(cssStyleSheet); | 820 documentCSSStyleSheets->insert(cssStyleSheet); |
| 821 if (frontend()) { | 821 if (frontend()) { |
| 822 frontend()->styleSheetAdded( | 822 frontend()->styleSheetAdded( |
| 823 newStyleSheet->buildObjectForStyleSheetInfo()); | 823 newStyleSheet->buildObjectForStyleSheetInfo()); |
| 824 } | 824 } |
| 825 } | 825 } |
| 826 | 826 |
| 827 if (documentCSSStyleSheets->isEmpty()) | 827 if (documentCSSStyleSheets->isEmpty()) |
| 828 m_documentToCSSStyleSheets.remove(document); | 828 m_documentToCSSStyleSheets.remove(document); |
| 829 } | 829 } |
| 830 | 830 |
| 831 void InspectorCSSAgent::documentDetached(Document* document) { | 831 void InspectorCSSAgent::documentDetached(Document* document) { |
| 832 m_invalidatedDocuments.erase(document); | 832 m_invalidatedDocuments.erase(document); |
| 833 setActiveStyleSheets(document, HeapVector<Member<CSSStyleSheet>>()); | 833 setActiveStyleSheets(document, HeapVector<Member<CSSStyleSheet>>()); |
| 834 } | 834 } |
| (...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2502 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); | 2502 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); |
| 2503 visitor->trace(m_documentToCSSStyleSheets); | 2503 visitor->trace(m_documentToCSSStyleSheets); |
| 2504 visitor->trace(m_invalidatedDocuments); | 2504 visitor->trace(m_invalidatedDocuments); |
| 2505 visitor->trace(m_nodeToInspectorStyleSheet); | 2505 visitor->trace(m_nodeToInspectorStyleSheet); |
| 2506 visitor->trace(m_inspectorUserAgentStyleSheet); | 2506 visitor->trace(m_inspectorUserAgentStyleSheet); |
| 2507 visitor->trace(m_tracker); | 2507 visitor->trace(m_tracker); |
| 2508 InspectorBaseAgent::trace(visitor); | 2508 InspectorBaseAgent::trace(visitor); |
| 2509 } | 2509 } |
| 2510 | 2510 |
| 2511 } // namespace blink | 2511 } // namespace blink |
| OLD | NEW |