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

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

Issue 306483011: Combine background repaint conditions in RenderStyle and RenderObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing small-apple.jpg Created 6 years, 6 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
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 return m_next ? m_next->hasImage() : false; 160 return m_next ? m_next->hasImage() : false;
161 } 161 }
162 162
163 bool hasFixedImage() const 163 bool hasFixedImage() const
164 { 164 {
165 if (m_image && m_attachment == FixedBackgroundAttachment) 165 if (m_image && m_attachment == FixedBackgroundAttachment)
166 return true; 166 return true;
167 return m_next ? m_next->hasFixedImage() : false; 167 return m_next ? m_next->hasFixedImage() : false;
168 } 168 }
169 169
170 bool needsFullRepaintOnContainerWidthChange() const;
171 bool needsFullRepaintOnContainerHeightChange() const;
172
173 bool hasOpaqueImage(const RenderObject*) const; 170 bool hasOpaqueImage(const RenderObject*) const;
174 bool hasRepeatXY() const; 171 bool hasRepeatXY() const;
175 bool clipOccludesNextLayers(bool firstLayer) const; 172 bool clipOccludesNextLayers(bool firstLayer) const;
176 173
177 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); } 174 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); }
178 175
179 void fillUnsetProperties(); 176 void fillUnsetProperties();
180 void cullEmptyLayers(); 177 void cullEmptyLayers();
181 178
182 static EFillAttachment initialFillAttachment(EFillLayerType) { return Scroll BackgroundAttachment; } 179 static EFillAttachment initialFillAttachment(EFillLayerType) { return Scroll BackgroundAttachment; }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 unsigned m_maskSourceTypeSet : 1; 234 unsigned m_maskSourceTypeSet : 1;
238 235
239 unsigned m_type : 1; // EFillLayerType 236 unsigned m_type : 1; // EFillLayerType
240 237
241 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer 238 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer
242 }; 239 };
243 240
244 } // namespace WebCore 241 } // namespace WebCore
245 242
246 #endif // FillLayer_h 243 #endif // FillLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698