| 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 * |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class StyleImage; | 37 class StyleImage; |
| 38 class StyleResolverState; | 38 class StyleResolverState; |
| 39 class NinePieceImage; | 39 class NinePieceImage; |
| 40 class BorderImageLengthBox; | 40 class BorderImageLengthBox; |
| 41 | 41 |
| 42 // CSSToStyleMap is a short-lived helper object which | 42 // CSSToStyleMap is a short-lived helper object which |
| 43 // given the current StyleResolverState can map | 43 // given the current StyleResolverState can map |
| 44 // CSSValue objects into their RenderStyle equivalents. | 44 // CSSValue objects into their RenderStyle equivalents. |
| 45 | 45 |
| 46 class CSSToStyleMap { | 46 class CSSToStyleMap { |
| 47 STACK_ALLOCATED(); |
| 47 WTF_MAKE_NONCOPYABLE(CSSToStyleMap); | 48 WTF_MAKE_NONCOPYABLE(CSSToStyleMap); |
| 48 public: | 49 public: |
| 49 CSSToStyleMap(const StyleResolverState& state, ElementStyleResources& elemen
tStyleResources) : m_state(state), m_elementStyleResources(elementStyleResources
) { } | 50 CSSToStyleMap(const StyleResolverState& state, ElementStyleResources& elemen
tStyleResources) : m_state(state), m_elementStyleResources(elementStyleResources
) { } |
| 50 | |
| 51 void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*) const; | 51 void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 52 void mapFillClip(CSSPropertyID, FillLayer*, CSSValue*) const; | 52 void mapFillClip(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 53 void mapFillComposite(CSSPropertyID, FillLayer*, CSSValue*) const; | 53 void mapFillComposite(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 54 void mapFillBlendMode(CSSPropertyID, FillLayer*, CSSValue*) const; | 54 void mapFillBlendMode(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 55 void mapFillOrigin(CSSPropertyID, FillLayer*, CSSValue*) const; | 55 void mapFillOrigin(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 56 void mapFillImage(CSSPropertyID, FillLayer*, CSSValue*); | 56 void mapFillImage(CSSPropertyID, FillLayer*, CSSValue*); |
| 57 void mapFillRepeatX(CSSPropertyID, FillLayer*, CSSValue*) const; | 57 void mapFillRepeatX(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 58 void mapFillRepeatY(CSSPropertyID, FillLayer*, CSSValue*) const; | 58 void mapFillRepeatY(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 59 void mapFillSize(CSSPropertyID, FillLayer*, CSSValue*) const; | 59 void mapFillSize(CSSPropertyID, FillLayer*, CSSValue*) const; |
| 60 void mapFillXPosition(CSSPropertyID, FillLayer*, CSSValue*) const; | 60 void mapFillXPosition(CSSPropertyID, FillLayer*, CSSValue*) const; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 85 | 85 |
| 86 // FIXME: Consider passing a StyleResolverState (or ElementResolveState) | 86 // FIXME: Consider passing a StyleResolverState (or ElementResolveState) |
| 87 // as an argument instead of caching it on this object. | 87 // as an argument instead of caching it on this object. |
| 88 const StyleResolverState& m_state; | 88 const StyleResolverState& m_state; |
| 89 ElementStyleResources& m_elementStyleResources; | 89 ElementStyleResources& m_elementStyleResources; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } | 92 } |
| 93 | 93 |
| 94 #endif | 94 #endif |
| OLD | NEW |