Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1664)

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.h

Issue 1373753002: Change CSSToStyleMap functions to take const CSSValue&s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix for mask Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 33
34 class FillLayer; 34 class FillLayer;
35 class CSSValue; 35 class CSSValue;
36 class StyleResolverState; 36 class StyleResolverState;
37 class NinePieceImage; 37 class NinePieceImage;
38 class BorderImageLengthBox; 38 class BorderImageLengthBox;
39 39
40 class CSSToStyleMap { 40 class CSSToStyleMap {
41 STATIC_ONLY(CSSToStyleMap); 41 STATIC_ONLY(CSSToStyleMap);
42 public: 42 public:
43 static void mapFillAttachment(StyleResolverState&, FillLayer*, CSSValue*); 43 static void mapFillAttachment(StyleResolverState&, FillLayer*, const CSSValu e&);
44 static void mapFillClip(StyleResolverState&, FillLayer*, CSSValue*); 44 static void mapFillClip(StyleResolverState&, FillLayer*, const CSSValue&);
45 static void mapFillComposite(StyleResolverState&, FillLayer*, CSSValue*); 45 static void mapFillComposite(StyleResolverState&, FillLayer*, const CSSValue &);
46 static void mapFillBlendMode(StyleResolverState&, FillLayer*, CSSValue*); 46 static void mapFillBlendMode(StyleResolverState&, FillLayer*, const CSSValue &);
47 static void mapFillOrigin(StyleResolverState&, FillLayer*, CSSValue*); 47 static void mapFillOrigin(StyleResolverState&, FillLayer*, const CSSValue&);
48 static void mapFillImage(StyleResolverState&, FillLayer*, CSSValue*); 48 static void mapFillImage(StyleResolverState&, FillLayer*, const CSSValue&);
49 static void mapFillRepeatX(StyleResolverState&, FillLayer*, CSSValue*); 49 static void mapFillRepeatX(StyleResolverState&, FillLayer*, const CSSValue&) ;
50 static void mapFillRepeatY(StyleResolverState&, FillLayer*, CSSValue*); 50 static void mapFillRepeatY(StyleResolverState&, FillLayer*, const CSSValue&) ;
51 static void mapFillSize(StyleResolverState&, FillLayer*, CSSValue*); 51 static void mapFillSize(StyleResolverState&, FillLayer*, const CSSValue&);
52 static void mapFillXPosition(StyleResolverState&, FillLayer*, CSSValue*); 52 static void mapFillXPosition(StyleResolverState&, FillLayer*, const CSSValue &);
53 static void mapFillYPosition(StyleResolverState&, FillLayer*, CSSValue*); 53 static void mapFillYPosition(StyleResolverState&, FillLayer*, const CSSValue &);
54 static void mapFillMaskSourceType(StyleResolverState&, FillLayer*, CSSValue* ); 54 static void mapFillMaskSourceType(StyleResolverState&, FillLayer*, const CSS Value&);
55 55
56 static double mapAnimationDelay(CSSValue*); 56 static double mapAnimationDelay(const CSSValue&);
57 static Timing::PlaybackDirection mapAnimationDirection(CSSValue*); 57 static Timing::PlaybackDirection mapAnimationDirection(const CSSValue&);
58 static double mapAnimationDuration(CSSValue*); 58 static double mapAnimationDuration(const CSSValue&);
59 static Timing::FillMode mapAnimationFillMode(CSSValue*); 59 static Timing::FillMode mapAnimationFillMode(const CSSValue&);
60 static double mapAnimationIterationCount(CSSValue*); 60 static double mapAnimationIterationCount(const CSSValue&);
61 static AtomicString mapAnimationName(CSSValue*); 61 static AtomicString mapAnimationName(const CSSValue&);
62 static EAnimPlayState mapAnimationPlayState(CSSValue*); 62 static EAnimPlayState mapAnimationPlayState(const CSSValue&);
63 static CSSTransitionData::TransitionProperty mapAnimationProperty(CSSValue*) ; 63 static CSSTransitionData::TransitionProperty mapAnimationProperty(const CSSV alue&);
64 static PassRefPtr<TimingFunction> mapAnimationTimingFunction(CSSValue*, bool allowStepMiddle = false); 64 static PassRefPtr<TimingFunction> mapAnimationTimingFunction(const CSSValue& , bool allowStepMiddle = false);
65 65
66 static void mapNinePieceImage(StyleResolverState&, CSSPropertyID, CSSValue*, NinePieceImage&); 66 static void mapNinePieceImage(StyleResolverState&, CSSPropertyID, const CSSV alue&, NinePieceImage&);
67 static void mapNinePieceImageSlice(StyleResolverState&, CSSValue*, NinePiece Image&); 67 static void mapNinePieceImageSlice(StyleResolverState&, const CSSValue&, Nin ePieceImage&);
68 static BorderImageLengthBox mapNinePieceImageQuad(StyleResolverState&, CSSVa lue*); 68 static BorderImageLengthBox mapNinePieceImageQuad(StyleResolverState&, const CSSValue&);
69 static void mapNinePieceImageRepeat(StyleResolverState&, CSSValue*, NinePiec eImage&); 69 static void mapNinePieceImageRepeat(StyleResolverState&, const CSSValue&, Ni nePieceImage&);
70 }; 70 };
71 71
72 } 72 }
73 73
74 #endif 74 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698