| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 // static | 605 // static |
| 606 CSSMediaRule* InspectorCSSAgent::asCSSMediaRule(CSSRule* rule) | 606 CSSMediaRule* InspectorCSSAgent::asCSSMediaRule(CSSRule* rule) |
| 607 { | 607 { |
| 608 if (!rule || rule->type() != CSSRule::MEDIA_RULE) | 608 if (!rule || rule->type() != CSSRule::MEDIA_RULE) |
| 609 return nullptr; | 609 return nullptr; |
| 610 return toCSSMediaRule(rule); | 610 return toCSSMediaRule(rule); |
| 611 } | 611 } |
| 612 | 612 |
| 613 InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectedFrame
s* inspectedFrames, InspectorResourceAgent* resourceAgent, InspectorResourceCont
entLoader* resourceContentLoader, InspectorResourceContainer* resourceContainer) | 613 InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectedFrame
s* inspectedFrames, InspectorResourceAgent* resourceAgent, InspectorResourceCont
entLoader* resourceContentLoader, InspectorResourceContainer* resourceContainer) |
| 614 : InspectorBaseAgent<InspectorCSSAgent, protocol::CSS::Frontend>("CSS") | 614 : m_domAgent(domAgent) |
| 615 , m_domAgent(domAgent) | |
| 616 , m_inspectedFrames(inspectedFrames) | 615 , m_inspectedFrames(inspectedFrames) |
| 617 , m_resourceAgent(resourceAgent) | 616 , m_resourceAgent(resourceAgent) |
| 618 , m_resourceContentLoader(resourceContentLoader) | 617 , m_resourceContentLoader(resourceContentLoader) |
| 619 , m_resourceContainer(resourceContainer) | 618 , m_resourceContainer(resourceContainer) |
| 620 , m_creatingViaInspectorStyleSheet(false) | 619 , m_creatingViaInspectorStyleSheet(false) |
| 621 , m_isSettingStyleSheetText(false) | 620 , m_isSettingStyleSheetText(false) |
| 622 , m_resourceContentLoaderClientId(resourceContentLoader->createClientId()) | 621 , m_resourceContentLoaderClientId(resourceContentLoader->createClientId()) |
| 623 { | 622 { |
| 624 } | 623 } |
| 625 | 624 |
| (...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2074 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); | 2073 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); |
| 2075 visitor->trace(m_documentToCSSStyleSheets); | 2074 visitor->trace(m_documentToCSSStyleSheets); |
| 2076 visitor->trace(m_invalidatedDocuments); | 2075 visitor->trace(m_invalidatedDocuments); |
| 2077 visitor->trace(m_nodeToInspectorStyleSheet); | 2076 visitor->trace(m_nodeToInspectorStyleSheet); |
| 2078 visitor->trace(m_documentToViaInspectorStyleSheet); | 2077 visitor->trace(m_documentToViaInspectorStyleSheet); |
| 2079 visitor->trace(m_inspectorUserAgentStyleSheet); | 2078 visitor->trace(m_inspectorUserAgentStyleSheet); |
| 2080 InspectorBaseAgent::trace(visitor); | 2079 InspectorBaseAgent::trace(visitor); |
| 2081 } | 2080 } |
| 2082 | 2081 |
| 2083 } // namespace blink | 2082 } // namespace blink |
| OLD | NEW |