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

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

Issue 275543003: Don't always fully repaint on viewport resize (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
170 bool hasOpaqueImage(const RenderObject*) const; 173 bool hasOpaqueImage(const RenderObject*) const;
171 bool hasRepeatXY() const; 174 bool hasRepeatXY() const;
172 bool clipOccludesNextLayers(bool firstLayer) const; 175 bool clipOccludesNextLayers(bool firstLayer) const;
173 176
174 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); } 177 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); }
175 178
176 void fillUnsetProperties(); 179 void fillUnsetProperties();
177 void cullEmptyLayers(); 180 void cullEmptyLayers();
178 181
179 static EFillAttachment initialFillAttachment(EFillLayerType) { return Scroll BackgroundAttachment; } 182 static EFillAttachment initialFillAttachment(EFillLayerType) { return Scroll BackgroundAttachment; }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 unsigned m_maskSourceTypeSet : 1; 237 unsigned m_maskSourceTypeSet : 1;
235 238
236 unsigned m_type : 1; // EFillLayerType 239 unsigned m_type : 1; // EFillLayerType
237 240
238 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer 241 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer
239 }; 242 };
240 243
241 } // namespace WebCore 244 } // namespace WebCore
242 245
243 #endif // FillLayer_h 246 #endif // FillLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698