| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 class PropertySetCSSStyleDeclaration | 87 class PropertySetCSSStyleDeclaration |
| 88 : public AbstractPropertySetCSSStyleDeclaration { | 88 : public AbstractPropertySetCSSStyleDeclaration { |
| 89 public: | 89 public: |
| 90 PropertySetCSSStyleDeclaration(MutableStylePropertySet& propertySet) | 90 PropertySetCSSStyleDeclaration(MutableStylePropertySet& propertySet) |
| 91 : m_propertySet(&propertySet) {} | 91 : m_propertySet(&propertySet) {} |
| 92 | 92 |
| 93 DECLARE_VIRTUAL_TRACE(); | 93 DECLARE_VIRTUAL_TRACE(); |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 MutableStylePropertySet& propertySet() const final { | 96 MutableStylePropertySet& propertySet() const final { |
| 97 ASSERT(m_propertySet); | 97 DCHECK(m_propertySet); |
| 98 return *m_propertySet; | 98 return *m_propertySet; |
| 99 } | 99 } |
| 100 | 100 |
| 101 PropertyRegistry* propertyRegistry() const override { return nullptr; } | 101 PropertyRegistry* propertyRegistry() const override { return nullptr; } |
| 102 | 102 |
| 103 Member<MutableStylePropertySet> m_propertySet; // Cannot be null | 103 Member<MutableStylePropertySet> m_propertySet; // Cannot be null |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 class StyleRuleCSSStyleDeclaration : public PropertySetCSSStyleDeclaration { | 106 class StyleRuleCSSStyleDeclaration : public PropertySetCSSStyleDeclaration { |
| 107 public: | 107 public: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 void didMutate(MutationType) override; | 146 void didMutate(MutationType) override; |
| 147 PropertyRegistry* propertyRegistry() const final; | 147 PropertyRegistry* propertyRegistry() const final; |
| 148 | 148 |
| 149 Member<Element> m_parentElement; | 149 Member<Element> m_parentElement; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |