| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 return m_next ? m_next->hasImage() : false; | 168 return m_next ? m_next->hasImage() : false; |
| 169 } | 169 } |
| 170 | 170 |
| 171 bool hasFixedImage() const | 171 bool hasFixedImage() const |
| 172 { | 172 { |
| 173 if (m_image && m_attachment == FixedBackgroundAttachment) | 173 if (m_image && m_attachment == FixedBackgroundAttachment) |
| 174 return true; | 174 return true; |
| 175 return m_next ? m_next->hasFixedImage() : false; | 175 return m_next ? m_next->hasFixedImage() : false; |
| 176 } | 176 } |
| 177 | 177 |
| 178 bool hasOpaqueImage(const LayoutObject*) const; | 178 bool backgroundImageIsOpaque(const LayoutObject&, const float) const; |
| 179 bool hasRepeatXY() const; | |
| 180 bool clipOccludesNextLayers() const; | 179 bool clipOccludesNextLayers() const; |
| 181 | 180 |
| 182 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); } | 181 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); } |
| 183 | 182 |
| 184 void fillUnsetProperties(); | 183 void fillUnsetProperties(); |
| 185 void cullEmptyLayers(); | 184 void cullEmptyLayers(); |
| 186 | 185 |
| 187 static bool imagesIdentical(const FillLayer*, const FillLayer*); | 186 static bool imagesIdentical(const FillLayer*, const FillLayer*); |
| 188 | 187 |
| 189 EFillBox thisOrNextLayersClipMax() const { computeCachedPropertiesIfNeeded()
; return static_cast<EFillBox>(m_thisOrNextLayersClipMax); } | 188 EFillBox thisOrNextLayersClipMax() const { computeCachedPropertiesIfNeeded()
; return static_cast<EFillBox>(m_thisOrNextLayersClipMax); } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 249 |
| 251 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip
value from this to bottom layer | 250 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. | 251 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. | 252 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. | 253 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov
e is accessed. The layers will be frozen thereafter. |
| 255 }; | 254 }; |
| 256 | 255 |
| 257 } // namespace blink | 256 } // namespace blink |
| 258 | 257 |
| 259 #endif // FillLayer_h | 258 #endif // FillLayer_h |
| OLD | NEW |