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 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 | 1810 |
1811 String InspectorCSSAgent::styleSheetId(CSSStyleSheet* styleSheet) { | 1811 String InspectorCSSAgent::styleSheetId(CSSStyleSheet* styleSheet) { |
1812 return bindStyleSheet(styleSheet)->id(); | 1812 return bindStyleSheet(styleSheet)->id(); |
1813 } | 1813 } |
1814 | 1814 |
1815 String InspectorCSSAgent::unbindStyleSheet( | 1815 String InspectorCSSAgent::unbindStyleSheet( |
1816 InspectorStyleSheet* inspectorStyleSheet) { | 1816 InspectorStyleSheet* inspectorStyleSheet) { |
1817 String id = inspectorStyleSheet->id(); | 1817 String id = inspectorStyleSheet->id(); |
1818 m_idToInspectorStyleSheet.remove(id); | 1818 m_idToInspectorStyleSheet.remove(id); |
1819 if (inspectorStyleSheet->pageStyleSheet()) | 1819 if (inspectorStyleSheet->pageStyleSheet()) |
1820 m_cssStyleSheetToInspectorStyleSheet.remove( | 1820 m_cssStyleSheetToInspectorStyleSheet.erase( |
1821 inspectorStyleSheet->pageStyleSheet()); | 1821 inspectorStyleSheet->pageStyleSheet()); |
1822 return id; | 1822 return id; |
1823 } | 1823 } |
1824 | 1824 |
1825 InspectorStyleSheet* InspectorCSSAgent::inspectorStyleSheetForRule( | 1825 InspectorStyleSheet* InspectorCSSAgent::inspectorStyleSheetForRule( |
1826 CSSStyleRule* rule) { | 1826 CSSStyleRule* rule) { |
1827 if (!rule) | 1827 if (!rule) |
1828 return nullptr; | 1828 return nullptr; |
1829 | 1829 |
1830 // CSSRules returned by StyleResolver::pseudoCSSRulesForElement lack parent | 1830 // CSSRules returned by StyleResolver::pseudoCSSRulesForElement lack parent |
(...skipping 671 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 |