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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 StyleSheetHandler(const String& parsedText, Document* document, RuleSourceDa
taList* result) | 75 StyleSheetHandler(const String& parsedText, Document* document, RuleSourceDa
taList* result) |
76 : m_parsedText(parsedText) | 76 : m_parsedText(parsedText) |
77 , m_document(document) | 77 , m_document(document) |
78 , m_result(result) | 78 , m_result(result) |
79 , m_mediaQueryExpValueRangeStart(UINT_MAX) | 79 , m_mediaQueryExpValueRangeStart(UINT_MAX) |
80 { | 80 { |
81 ASSERT(m_result); | 81 ASSERT(m_result); |
82 } | 82 } |
83 | 83 |
84 private: | 84 private: |
85 virtual void startRuleHeader(StyleRule::Type, unsigned) override; | 85 void startRuleHeader(StyleRule::Type, unsigned) override; |
86 virtual void endRuleHeader(unsigned) override; | 86 void endRuleHeader(unsigned) override; |
87 virtual void observeSelector(unsigned startOffset, unsigned endOffset) overr
ide; | 87 void observeSelector(unsigned startOffset, unsigned endOffset) override; |
88 virtual void startRuleBody(unsigned) override; | 88 void startRuleBody(unsigned) override; |
89 virtual void endRuleBody(unsigned) override; | 89 void endRuleBody(unsigned) override; |
90 virtual void observeProperty(unsigned startOffset, unsigned endOffset, bool
isImportant, bool isParsed) override; | 90 void observeProperty(unsigned startOffset, unsigned endOffset, bool isImport
ant, bool isParsed) override; |
91 virtual void observeComment(unsigned startOffset, unsigned endOffset) overri
de; | 91 void observeComment(unsigned startOffset, unsigned endOffset) override; |
92 virtual void startMediaQueryExp(unsigned offset) override; | 92 void startMediaQueryExp(unsigned offset) override; |
93 virtual void endMediaQueryExp(unsigned offset) override; | 93 void endMediaQueryExp(unsigned offset) override; |
94 virtual void startMediaQuery() override; | 94 void startMediaQuery() override; |
95 virtual void endMediaQuery() override; | 95 void endMediaQuery() override; |
96 | 96 |
97 void addNewRuleToSourceTree(PassRefPtrWillBeRawPtr<CSSRuleSourceData>); | 97 void addNewRuleToSourceTree(PassRefPtrWillBeRawPtr<CSSRuleSourceData>); |
98 PassRefPtrWillBeRawPtr<CSSRuleSourceData> popRuleData(); | 98 PassRefPtrWillBeRawPtr<CSSRuleSourceData> popRuleData(); |
99 template <typename CharacterType> inline void setRuleHeaderEnd(const Charact
erType*, unsigned); | 99 template <typename CharacterType> inline void setRuleHeaderEnd(const Charact
erType*, unsigned); |
100 void fixUnparsedPropertyRanges(CSSRuleSourceData*); | 100 void fixUnparsedPropertyRanges(CSSRuleSourceData*); |
101 | 101 |
102 const String& m_parsedText; | 102 const String& m_parsedText; |
103 RawPtrWillBeMember<Document> m_document; | 103 RawPtrWillBeMember<Document> m_document; |
104 RuleSourceDataList* m_result; | 104 RuleSourceDataList* m_result; |
105 RuleSourceDataList m_currentRuleDataStack; | 105 RuleSourceDataList m_currentRuleDataStack; |
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 } | 1711 } |
1712 | 1712 |
1713 DEFINE_TRACE(InspectorStyleSheetForInlineStyle) | 1713 DEFINE_TRACE(InspectorStyleSheetForInlineStyle) |
1714 { | 1714 { |
1715 visitor->trace(m_element); | 1715 visitor->trace(m_element); |
1716 visitor->trace(m_inspectorStyle); | 1716 visitor->trace(m_inspectorStyle); |
1717 InspectorStyleSheetBase::trace(visitor); | 1717 InspectorStyleSheetBase::trace(visitor); |
1718 } | 1718 } |
1719 | 1719 |
1720 } // namespace blink | 1720 } // namespace blink |
OLD | NEW |