| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef SKY_ENGINE_CORE_CSS_RESOLVER_CSSTOSTYLEMAP_H_ | 22 #ifndef SKY_ENGINE_CORE_CSS_RESOLVER_CSSTOSTYLEMAP_H_ |
| 23 #define SKY_ENGINE_CORE_CSS_RESOLVER_CSSTOSTYLEMAP_H_ | 23 #define SKY_ENGINE_CORE_CSS_RESOLVER_CSSTOSTYLEMAP_H_ |
| 24 | 24 |
| 25 #include "gen/sky/core/CSSPropertyNames.h" | 25 #include "gen/sky/core/CSSPropertyNames.h" |
| 26 #include "sky/engine/core/animation/Timing.h" | |
| 27 #include "sky/engine/core/animation/css/CSSTransitionData.h" | |
| 28 #include "sky/engine/core/css/resolver/ElementStyleResources.h" | 26 #include "sky/engine/core/css/resolver/ElementStyleResources.h" |
| 29 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" | 27 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 30 #include "sky/engine/platform/animation/TimingFunction.h" | |
| 31 #include "sky/engine/wtf/Noncopyable.h" | 28 #include "sky/engine/wtf/Noncopyable.h" |
| 32 | 29 |
| 33 namespace blink { | 30 namespace blink { |
| 34 | 31 |
| 35 class FillLayer; | 32 class FillLayer; |
| 36 class CSSToLengthConversionData; | 33 class CSSToLengthConversionData; |
| 37 class CSSValue; | 34 class CSSValue; |
| 38 class RenderStyle; | 35 class RenderStyle; |
| 39 class StyleImage; | 36 class StyleImage; |
| 40 class StyleResolverState; | 37 class StyleResolverState; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 56 void mapFillBlendMode(FillLayer*, CSSValue*) const; | 53 void mapFillBlendMode(FillLayer*, CSSValue*) const; |
| 57 void mapFillOrigin(FillLayer*, CSSValue*) const; | 54 void mapFillOrigin(FillLayer*, CSSValue*) const; |
| 58 void mapFillImage(FillLayer*, CSSValue*); | 55 void mapFillImage(FillLayer*, CSSValue*); |
| 59 void mapFillRepeatX(FillLayer*, CSSValue*) const; | 56 void mapFillRepeatX(FillLayer*, CSSValue*) const; |
| 60 void mapFillRepeatY(FillLayer*, CSSValue*) const; | 57 void mapFillRepeatY(FillLayer*, CSSValue*) const; |
| 61 void mapFillSize(FillLayer*, CSSValue*) const; | 58 void mapFillSize(FillLayer*, CSSValue*) const; |
| 62 void mapFillXPosition(FillLayer*, CSSValue*) const; | 59 void mapFillXPosition(FillLayer*, CSSValue*) const; |
| 63 void mapFillYPosition(FillLayer*, CSSValue*) const; | 60 void mapFillYPosition(FillLayer*, CSSValue*) const; |
| 64 | 61 |
| 65 static double mapAnimationDelay(CSSValue*); | 62 static double mapAnimationDelay(CSSValue*); |
| 66 static Timing::PlaybackDirection mapAnimationDirection(CSSValue*); | |
| 67 static double mapAnimationDuration(CSSValue*); | 63 static double mapAnimationDuration(CSSValue*); |
| 68 static Timing::FillMode mapAnimationFillMode(CSSValue*); | |
| 69 static double mapAnimationIterationCount(CSSValue*); | 64 static double mapAnimationIterationCount(CSSValue*); |
| 70 static AtomicString mapAnimationName(CSSValue*); | 65 static AtomicString mapAnimationName(CSSValue*); |
| 71 static EAnimPlayState mapAnimationPlayState(CSSValue*); | 66 static EAnimPlayState mapAnimationPlayState(CSSValue*); |
| 72 static CSSTransitionData::TransitionProperty mapAnimationProperty(CSSValue*)
; | |
| 73 static PassRefPtr<TimingFunction> mapAnimationTimingFunction(CSSValue*, bool
allowStepMiddle = false); | |
| 74 | 67 |
| 75 void mapNinePieceImage(RenderStyle* mutableStyle, CSSPropertyID, CSSValue*,
NinePieceImage&); | 68 void mapNinePieceImage(RenderStyle* mutableStyle, CSSPropertyID, CSSValue*,
NinePieceImage&); |
| 76 void mapNinePieceImageSlice(CSSValue*, NinePieceImage&) const; | 69 void mapNinePieceImageSlice(CSSValue*, NinePieceImage&) const; |
| 77 BorderImageLengthBox mapNinePieceImageQuad(CSSValue*) const; | 70 BorderImageLengthBox mapNinePieceImageQuad(CSSValue*) const; |
| 78 void mapNinePieceImageRepeat(CSSValue*, NinePieceImage&) const; | 71 void mapNinePieceImageRepeat(CSSValue*, NinePieceImage&) const; |
| 79 | 72 |
| 80 private: | 73 private: |
| 81 const CSSToLengthConversionData& cssToLengthConversionData() const; | 74 const CSSToLengthConversionData& cssToLengthConversionData() const; |
| 82 | 75 |
| 83 PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue*); | 76 PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue*); |
| 84 | 77 |
| 85 // FIXME: Consider passing a StyleResolverState (or ElementResolveState) | 78 // FIXME: Consider passing a StyleResolverState (or ElementResolveState) |
| 86 // as an argument instead of caching it on this object. | 79 // as an argument instead of caching it on this object. |
| 87 const StyleResolverState& m_state; | 80 const StyleResolverState& m_state; |
| 88 ElementStyleResources& m_elementStyleResources; | 81 ElementStyleResources& m_elementStyleResources; |
| 89 }; | 82 }; |
| 90 | 83 |
| 91 } | 84 } |
| 92 | 85 |
| 93 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_CSSTOSTYLEMAP_H_ | 86 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_CSSTOSTYLEMAP_H_ |
| OLD | NEW |