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

Side by Side Diff: third_party/WebKit/Source/core/style/FillLayer.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 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
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool isAttachmentSet() const { return m_attachmentSet; } 103 bool isAttachmentSet() const { return m_attachmentSet; }
104 bool isClipSet() const { return m_clipSet; } 104 bool isClipSet() const { return m_clipSet; }
105 bool isOriginSet() const { return m_originSet; } 105 bool isOriginSet() const { return m_originSet; }
106 bool isRepeatXSet() const { return m_repeatXSet; } 106 bool isRepeatXSet() const { return m_repeatXSet; }
107 bool isRepeatYSet() const { return m_repeatYSet; } 107 bool isRepeatYSet() const { return m_repeatYSet; }
108 bool isCompositeSet() const { return m_compositeSet; } 108 bool isCompositeSet() const { return m_compositeSet; }
109 bool isBlendModeSet() const { return m_blendModeSet; } 109 bool isBlendModeSet() const { return m_blendModeSet; }
110 bool isSizeSet() const { return m_sizeType != SizeNone; } 110 bool isSizeSet() const { return m_sizeType != SizeNone; }
111 bool isMaskSourceTypeSet() const { return m_maskSourceTypeSet; } 111 bool isMaskSourceTypeSet() const { return m_maskSourceTypeSet; }
112 112
113 void setImage(PassRefPtrWillBeRawPtr<StyleImage> i) { m_image = i; m_imageSe t = true; } 113 void setImage(RawPtr<StyleImage> i) { m_image = i; m_imageSet = true; }
114 void setXPosition(const Length& position) { m_xPosition = position; m_xPosSe t = true; m_backgroundXOriginSet = false; m_backgroundXOrigin = LeftEdge; } 114 void setXPosition(const Length& position) { m_xPosition = position; m_xPosSe t = true; m_backgroundXOriginSet = false; m_backgroundXOrigin = LeftEdge; }
115 void setYPosition(const Length& position) { m_yPosition = position; m_yPosSe t = true; m_backgroundYOriginSet = false; m_backgroundYOrigin = TopEdge; } 115 void setYPosition(const Length& position) { m_yPosition = position; m_yPosSe t = true; m_backgroundYOriginSet = false; m_backgroundYOrigin = TopEdge; }
116 void setBackgroundXOrigin(BackgroundEdgeOrigin origin) { m_backgroundXOrigin = origin; m_backgroundXOriginSet = true; } 116 void setBackgroundXOrigin(BackgroundEdgeOrigin origin) { m_backgroundXOrigin = origin; m_backgroundXOriginSet = true; }
117 void setBackgroundYOrigin(BackgroundEdgeOrigin origin) { m_backgroundYOrigin = origin; m_backgroundYOriginSet = true; } 117 void setBackgroundYOrigin(BackgroundEdgeOrigin origin) { m_backgroundYOrigin = origin; m_backgroundYOriginSet = true; }
118 void setAttachment(EFillAttachment attachment) { ASSERT(!m_cachedPropertiesC omputed); m_attachment = attachment; m_attachmentSet = true; } 118 void setAttachment(EFillAttachment attachment) { ASSERT(!m_cachedPropertiesC omputed); m_attachment = attachment; m_attachmentSet = true; }
119 void setClip(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_clip = b; m_clipSet = true; } 119 void setClip(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_clip = b; m_clipSet = true; }
120 void setOrigin(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_origin = b; m_originSet = true; } 120 void setOrigin(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_origin = b; m_originSet = true; }
121 void setRepeatX(EFillRepeat r) { m_repeatX = r; m_repeatXSet = true; } 121 void setRepeatX(EFillRepeat r) { m_repeatX = r; m_repeatXSet = true; }
122 void setRepeatY(EFillRepeat r) { m_repeatY = r; m_repeatYSet = true; } 122 void setRepeatY(EFillRepeat r) { m_repeatY = r; m_repeatYSet = true; }
123 void setComposite(CompositeOperator c) { m_composite = c; m_compositeSet = t rue; } 123 void setComposite(CompositeOperator c) { m_composite = c; m_compositeSet = t rue; }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 static StyleImage* initialFillImage(EFillLayerType) { return 0; } 206 static StyleImage* initialFillImage(EFillLayerType) { return 0; }
207 static EMaskSourceType initialFillMaskSourceType(EFillLayerType) { return Ma skAlpha; } 207 static EMaskSourceType initialFillMaskSourceType(EFillLayerType) { return Ma skAlpha; }
208 208
209 private: 209 private:
210 friend class ComputedStyle; 210 friend class ComputedStyle;
211 211
212 FillLayer() { } 212 FillLayer() { }
213 213
214 FillLayer* m_next; 214 FillLayer* m_next;
215 215
216 RefPtrWillBePersistent<StyleImage> m_image; 216 Persistent<StyleImage> m_image;
217 217
218 Length m_xPosition; 218 Length m_xPosition;
219 Length m_yPosition; 219 Length m_yPosition;
220 220
221 LengthSize m_sizeLength; 221 LengthSize m_sizeLength;
222 222
223 unsigned m_attachment : 2; // EFillAttachment 223 unsigned m_attachment : 2; // EFillAttachment
224 unsigned m_clip : 2; // EFillBox 224 unsigned m_clip : 2; // EFillBox
225 unsigned m_origin : 2; // EFillBox 225 unsigned m_origin : 2; // EFillBox
226 unsigned m_repeatX : 3; // EFillRepeat 226 unsigned m_repeatX : 3; // EFillRepeat
(...skipping 23 matching lines...) Expand all
250 250
251 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer 251 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer
252 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this or subsequent layers has content-box clip or origin. 252 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this or subsequent layers has content-box clip or origin.
253 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o f this or subsequent layers has local attachment. 253 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o f this or subsequent layers has local attachment.
254 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov e is accessed. The layers will be frozen thereafter. 254 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov e is accessed. The layers will be frozen thereafter.
255 }; 255 };
256 256
257 } // namespace blink 257 } // namespace blink
258 258
259 #endif // FillLayer_h 259 #endif // FillLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698