| OLD | NEW |
| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 void setBackgroundXOrigin(BackgroundEdgeOrigin origin) { | 134 void setBackgroundXOrigin(BackgroundEdgeOrigin origin) { |
| 135 m_backgroundXOrigin = origin; | 135 m_backgroundXOrigin = origin; |
| 136 m_backgroundXOriginSet = true; | 136 m_backgroundXOriginSet = true; |
| 137 } | 137 } |
| 138 void setBackgroundYOrigin(BackgroundEdgeOrigin origin) { | 138 void setBackgroundYOrigin(BackgroundEdgeOrigin origin) { |
| 139 m_backgroundYOrigin = origin; | 139 m_backgroundYOrigin = origin; |
| 140 m_backgroundYOriginSet = true; | 140 m_backgroundYOriginSet = true; |
| 141 } | 141 } |
| 142 void setAttachment(EFillAttachment attachment) { | 142 void setAttachment(EFillAttachment attachment) { |
| 143 ASSERT(!m_cachedPropertiesComputed); | 143 DCHECK(!m_cachedPropertiesComputed); |
| 144 m_attachment = attachment; | 144 m_attachment = attachment; |
| 145 m_attachmentSet = true; | 145 m_attachmentSet = true; |
| 146 } | 146 } |
| 147 void setClip(EFillBox b) { | 147 void setClip(EFillBox b) { |
| 148 ASSERT(!m_cachedPropertiesComputed); | 148 DCHECK(!m_cachedPropertiesComputed); |
| 149 m_clip = b; | 149 m_clip = b; |
| 150 m_clipSet = true; | 150 m_clipSet = true; |
| 151 } | 151 } |
| 152 void setOrigin(EFillBox b) { | 152 void setOrigin(EFillBox b) { |
| 153 ASSERT(!m_cachedPropertiesComputed); | 153 DCHECK(!m_cachedPropertiesComputed); |
| 154 m_origin = b; | 154 m_origin = b; |
| 155 m_originSet = true; | 155 m_originSet = true; |
| 156 } | 156 } |
| 157 void setRepeatX(EFillRepeat r) { | 157 void setRepeatX(EFillRepeat r) { |
| 158 m_repeatX = r; | 158 m_repeatX = r; |
| 159 m_repeatXSet = true; | 159 m_repeatXSet = true; |
| 160 } | 160 } |
| 161 void setRepeatY(EFillRepeat r) { | 161 void setRepeatY(EFillRepeat r) { |
| 162 m_repeatY = r; | 162 m_repeatY = r; |
| 163 m_repeatYSet = true; | 163 m_repeatYSet = true; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // True if any of this or subsequent layers has local attachment. | 337 // True if any of this or subsequent layers has local attachment. |
| 338 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; | 338 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; |
| 339 // Set once any of the above is accessed. The layers will be frozen | 339 // Set once any of the above is accessed. The layers will be frozen |
| 340 // thereafter. | 340 // thereafter. |
| 341 mutable unsigned m_cachedPropertiesComputed : 1; | 341 mutable unsigned m_cachedPropertiesComputed : 1; |
| 342 }; | 342 }; |
| 343 | 343 |
| 344 } // namespace blink | 344 } // namespace blink |
| 345 | 345 |
| 346 #endif // FillLayer_h | 346 #endif // FillLayer_h |
| OLD | NEW |