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 CSSToStyleMap_h | 22 #ifndef CSSToStyleMap_h |
23 #define CSSToStyleMap_h | 23 #define CSSToStyleMap_h |
24 | 24 |
25 #include "core/CSSPropertyNames.h" | 25 #include "core/CSSPropertyNames.h" |
26 #include "core/animation/Timing.h" | 26 #include "core/animation/Timing.h" |
27 #include "core/animation/css/CSSTransitionData.h" | 27 #include "core/animation/css/CSSTransitionData.h" |
28 #include "core/style/ComputedStyleConstants.h" | 28 #include "core/style/ComputedStyleConstants.h" |
29 #include "platform/animation/TimingFunction.h" | 29 #include "platform/animation/TimingFunction.h" |
| 30 #include "wtf/Allocator.h" |
30 | 31 |
31 namespace blink { | 32 namespace blink { |
32 | 33 |
33 class FillLayer; | 34 class FillLayer; |
34 class CSSValue; | 35 class CSSValue; |
35 class StyleResolverState; | 36 class StyleResolverState; |
36 class NinePieceImage; | 37 class NinePieceImage; |
37 class BorderImageLengthBox; | 38 class BorderImageLengthBox; |
38 | 39 |
39 class CSSToStyleMap { | 40 class CSSToStyleMap { |
| 41 STATIC_ONLY(CSSToStyleMap); |
40 public: | 42 public: |
41 static void mapFillAttachment(StyleResolverState&, FillLayer*, CSSValue*); | 43 static void mapFillAttachment(StyleResolverState&, FillLayer*, CSSValue*); |
42 static void mapFillClip(StyleResolverState&, FillLayer*, CSSValue*); | 44 static void mapFillClip(StyleResolverState&, FillLayer*, CSSValue*); |
43 static void mapFillComposite(StyleResolverState&, FillLayer*, CSSValue*); | 45 static void mapFillComposite(StyleResolverState&, FillLayer*, CSSValue*); |
44 static void mapFillBlendMode(StyleResolverState&, FillLayer*, CSSValue*); | 46 static void mapFillBlendMode(StyleResolverState&, FillLayer*, CSSValue*); |
45 static void mapFillOrigin(StyleResolverState&, FillLayer*, CSSValue*); | 47 static void mapFillOrigin(StyleResolverState&, FillLayer*, CSSValue*); |
46 static void mapFillImage(StyleResolverState&, FillLayer*, CSSValue*); | 48 static void mapFillImage(StyleResolverState&, FillLayer*, CSSValue*); |
47 static void mapFillRepeatX(StyleResolverState&, FillLayer*, CSSValue*); | 49 static void mapFillRepeatX(StyleResolverState&, FillLayer*, CSSValue*); |
48 static void mapFillRepeatY(StyleResolverState&, FillLayer*, CSSValue*); | 50 static void mapFillRepeatY(StyleResolverState&, FillLayer*, CSSValue*); |
49 static void mapFillSize(StyleResolverState&, FillLayer*, CSSValue*); | 51 static void mapFillSize(StyleResolverState&, FillLayer*, CSSValue*); |
(...skipping 13 matching lines...) Expand all Loading... |
63 | 65 |
64 static void mapNinePieceImage(StyleResolverState&, CSSPropertyID, CSSValue*,
NinePieceImage&); | 66 static void mapNinePieceImage(StyleResolverState&, CSSPropertyID, CSSValue*,
NinePieceImage&); |
65 static void mapNinePieceImageSlice(StyleResolverState&, CSSValue*, NinePiece
Image&); | 67 static void mapNinePieceImageSlice(StyleResolverState&, CSSValue*, NinePiece
Image&); |
66 static BorderImageLengthBox mapNinePieceImageQuad(StyleResolverState&, CSSVa
lue*); | 68 static BorderImageLengthBox mapNinePieceImageQuad(StyleResolverState&, CSSVa
lue*); |
67 static void mapNinePieceImageRepeat(StyleResolverState&, CSSValue*, NinePiec
eImage&); | 69 static void mapNinePieceImageRepeat(StyleResolverState&, CSSValue*, NinePiec
eImage&); |
68 }; | 70 }; |
69 | 71 |
70 } | 72 } |
71 | 73 |
72 #endif | 74 #endif |
OLD | NEW |