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

Side by Side Diff: Source/core/layout/style/FillLayer.h

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
12 * 12 *
13 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details. 16 * Library General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU Library General Public License 18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to 19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef FillLayer_h 25 #ifndef FillLayer_h
26 #define FillLayer_h 26 #define FillLayer_h
27 27
28 #include "core/layout/style/LayoutStyleConstants.h" 28 #include "core/layout/style/ComputedStyleConstants.h"
29 #include "core/layout/style/StyleImage.h" 29 #include "core/layout/style/StyleImage.h"
30 #include "platform/Length.h" 30 #include "platform/Length.h"
31 #include "platform/LengthSize.h" 31 #include "platform/LengthSize.h"
32 #include "platform/graphics/GraphicsTypes.h" 32 #include "platform/graphics/GraphicsTypes.h"
33 #include "wtf/RefPtr.h" 33 #include "wtf/RefPtr.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 struct FillSize { 37 struct FillSize {
38 FillSize() 38 FillSize()
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 static WebBlendMode initialFillBlendMode(EFillLayerType) { return WebBlendMo deNormal; } 189 static WebBlendMode initialFillBlendMode(EFillLayerType) { return WebBlendMo deNormal; }
190 static EFillSizeType initialFillSizeType(EFillLayerType) { return SizeLength ; } 190 static EFillSizeType initialFillSizeType(EFillLayerType) { return SizeLength ; }
191 static LengthSize initialFillSizeLength(EFillLayerType) { return LengthSize( ); } 191 static LengthSize initialFillSizeLength(EFillLayerType) { return LengthSize( ); }
192 static FillSize initialFillSize(EFillLayerType type) { return FillSize(initi alFillSizeType(type), initialFillSizeLength(type)); } 192 static FillSize initialFillSize(EFillLayerType type) { return FillSize(initi alFillSizeType(type), initialFillSizeLength(type)); }
193 static Length initialFillXPosition(EFillLayerType) { return Length(0.0, Perc ent); } 193 static Length initialFillXPosition(EFillLayerType) { return Length(0.0, Perc ent); }
194 static Length initialFillYPosition(EFillLayerType) { return Length(0.0, Perc ent); } 194 static Length initialFillYPosition(EFillLayerType) { return Length(0.0, Perc ent); }
195 static StyleImage* initialFillImage(EFillLayerType) { return 0; } 195 static StyleImage* initialFillImage(EFillLayerType) { return 0; }
196 static EMaskSourceType initialFillMaskSourceType(EFillLayerType) { return Ma skAlpha; } 196 static EMaskSourceType initialFillMaskSourceType(EFillLayerType) { return Ma skAlpha; }
197 197
198 private: 198 private:
199 friend class LayoutStyle; 199 friend class ComputedStyle;
200 200
201 void computeClipMax() const; 201 void computeClipMax() const;
202 202
203 FillLayer() { } 203 FillLayer() { }
204 204
205 FillLayer* m_next; 205 FillLayer* m_next;
206 206
207 RefPtr<StyleImage> m_image; 207 RefPtr<StyleImage> m_image;
208 208
209 Length m_xPosition; 209 Length m_xPosition;
(...skipping 28 matching lines...) Expand all
238 unsigned m_maskSourceTypeSet : 1; 238 unsigned m_maskSourceTypeSet : 1;
239 239
240 unsigned m_type : 1; // EFillLayerType 240 unsigned m_type : 1; // EFillLayerType
241 241
242 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer 242 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer
243 }; 243 };
244 244
245 } // namespace blink 245 } // namespace blink
246 246
247 #endif // FillLayer_h 247 #endif // FillLayer_h
OLDNEW
« no previous file with comments | « Source/core/layout/style/CounterContent.h ('k') | Source/core/layout/style/GridResolvedPosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698