| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 using blink::RuleSourceDataList; | 62 using blink::RuleSourceDataList; |
| 63 using blink::CSSRuleSourceData; | 63 using blink::CSSRuleSourceData; |
| 64 using blink::CSSStyleSheet; | 64 using blink::CSSStyleSheet; |
| 65 | 65 |
| 66 namespace { | 66 namespace { |
| 67 | 67 |
| 68 using namespace blink; | 68 using namespace blink; |
| 69 | 69 |
| 70 static CSSParserContext parserContextForDocument(Document *document) | 70 static CSSParserContext parserContextForDocument(Document *document) |
| 71 { | 71 { |
| 72 return document ? CSSParserContext(*document, 0) : strictCSSParserContext(); | 72 return document ? CSSParserContext(*document, nullptr) : strictCSSParserCont
ext(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 class StyleSheetHandler final : public CSSParserObserver { | 75 class StyleSheetHandler final : public CSSParserObserver { |
| 76 public: | 76 public: |
| 77 StyleSheetHandler(const String& parsedText, Document* document, RuleSourceDa
taList* result) | 77 StyleSheetHandler(const String& parsedText, Document* document, RuleSourceDa
taList* result) |
| 78 : m_parsedText(parsedText) | 78 : m_parsedText(parsedText) |
| 79 , m_document(document) | 79 , m_document(document) |
| 80 , m_result(result) | 80 , m_result(result) |
| 81 , m_currentRuleData(nullptr) | 81 , m_currentRuleData(nullptr) |
| 82 , m_currentMediaQueryData(nullptr) | 82 , m_currentMediaQueryData(nullptr) |
| (...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1780 } | 1780 } |
| 1781 | 1781 |
| 1782 DEFINE_TRACE(InspectorStyleSheetForInlineStyle) | 1782 DEFINE_TRACE(InspectorStyleSheetForInlineStyle) |
| 1783 { | 1783 { |
| 1784 visitor->trace(m_element); | 1784 visitor->trace(m_element); |
| 1785 visitor->trace(m_inspectorStyle); | 1785 visitor->trace(m_inspectorStyle); |
| 1786 InspectorStyleSheetBase::trace(visitor); | 1786 InspectorStyleSheetBase::trace(visitor); |
| 1787 } | 1787 } |
| 1788 | 1788 |
| 1789 } // namespace blink | 1789 } // namespace blink |
| OLD | NEW |