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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 private: 209 private:
210 friend class ComputedStyle; 210 friend class ComputedStyle;
211 211
212 FillLayer() { } 212 FillLayer() { }
213 213
214 bool imageIsOpaque(const LayoutObject&) const; 214 bool imageIsOpaque(const LayoutObject&) const;
215 bool imageTilesLayer() const; 215 bool imageTilesLayer() const;
216 216
217 FillLayer* m_next; 217 FillLayer* m_next;
218 218
219 RefPtrWillBePersistent<StyleImage> m_image; 219 Persistent<StyleImage> m_image;
220 220
221 Length m_xPosition; 221 Length m_xPosition;
222 Length m_yPosition; 222 Length m_yPosition;
223 223
224 LengthSize m_sizeLength; 224 LengthSize m_sizeLength;
225 225
226 unsigned m_attachment : 2; // EFillAttachment 226 unsigned m_attachment : 2; // EFillAttachment
227 unsigned m_clip : 2; // EFillBox 227 unsigned m_clip : 2; // EFillBox
228 unsigned m_origin : 2; // EFillBox 228 unsigned m_origin : 2; // EFillBox
229 unsigned m_repeatX : 3; // EFillRepeat 229 unsigned m_repeatX : 3; // EFillRepeat
(...skipping 23 matching lines...) Expand all
253 253
254 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer 254 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer
255 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this or subsequent layers has content-box clip or origin. 255 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this or subsequent layers has content-box clip or origin.
256 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o f this or subsequent layers has local attachment. 256 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o f this or subsequent layers has local attachment.
257 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov e is accessed. The layers will be frozen thereafter. 257 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov e is accessed. The layers will be frozen thereafter.
258 }; 258 };
259 259
260 } // namespace blink 260 } // namespace blink
261 261
262 #endif // FillLayer_h 262 #endif // FillLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/CursorData.h ('k') | third_party/WebKit/Source/core/style/FillLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698