| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Exposed to JavaScript. | 51 // Exposed to JavaScript. |
| 52 String keyText() const; | 52 String keyText() const; |
| 53 void setKeyText(const String&); | 53 void setKeyText(const String&); |
| 54 | 54 |
| 55 // Used by StyleResolver. | 55 // Used by StyleResolver. |
| 56 const Vector<double>& keys() const; | 56 const Vector<double>& keys() const; |
| 57 // Used by BisonCSSParser when constructing a new StyleKeyframe. | 57 // Used by BisonCSSParser when constructing a new StyleKeyframe. |
| 58 void setKeys(PassOwnPtr<Vector<double> >); | 58 void setKeys(PassOwnPtr<Vector<double> >); |
| 59 | 59 |
| 60 const StylePropertySet& properties() const { return *m_properties; } | 60 const StylePropertySet& properties() const { return *m_properties; } |
| 61 MutableStylePropertySet& mutableProperties(); | |
| 62 void setProperties(PassRefPtr<StylePropertySet>); | 61 void setProperties(PassRefPtr<StylePropertySet>); |
| 63 | 62 |
| 64 String cssText() const; | 63 String cssText() const; |
| 65 | 64 |
| 66 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); | 65 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); |
| 67 | 66 |
| 68 private: | 67 private: |
| 69 StyleKeyframe(); | 68 StyleKeyframe(); |
| 70 | 69 |
| 71 RefPtr<StylePropertySet> m_properties; | 70 RefPtr<StylePropertySet> m_properties; |
| 72 // These are both calculated lazily. Either one can be set, which invalidate
s the other. | 71 // These are both calculated lazily. Either one can be set, which invalidate
s the other. |
| 73 mutable String m_keyText; | 72 mutable String m_keyText; |
| 74 mutable OwnPtr<Vector<double> > m_keys; | 73 mutable OwnPtr<Vector<double> > m_keys; |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace blink | 76 } // namespace blink |
| 78 | 77 |
| 79 #endif // SKY_ENGINE_CORE_CSS_STYLEKEYFRAME_H_ | 78 #endif // SKY_ENGINE_CORE_CSS_STYLEKEYFRAME_H_ |
| OLD | NEW |