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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h

Issue 2264663002: Paint solid color backgrounds which are equivalent to locally attached into scrolling contents layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scrollcontent-paint-bg
Patch Set: Add test and only skip local equivalence if outline enters padding-box Created 4 years, 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // This will work on inlines to return the bounding box of all of the lines' border boxes. 174 // This will work on inlines to return the bounding box of all of the lines' border boxes.
175 virtual IntRect borderBoundingBox() const = 0; 175 virtual IntRect borderBoundingBox() const = 0;
176 176
177 virtual LayoutRect visualOverflowRect() const = 0; 177 virtual LayoutRect visualOverflowRect() const = 0;
178 178
179 // Checks if this box, or any of it's descendants, or any of it's continuati ons, 179 // Checks if this box, or any of it's descendants, or any of it's continuati ons,
180 // will take up space in the layout of the page. 180 // will take up space in the layout of the page.
181 bool hasNonEmptyLayoutSize() const; 181 bool hasNonEmptyLayoutSize() const;
182 bool usesCompositedScrolling() const; 182 bool usesCompositedScrolling() const;
183 183
184 // Checks if all of the background's layers can be painted as locally
185 // attached.
186 bool hasLocalEquivalentBackground() const;
187
184 // These return the CSS computed padding values. 188 // These return the CSS computed padding values.
185 LayoutUnit computedCSSPaddingTop() const { return computedCSSPadding(style() ->paddingTop()); } 189 LayoutUnit computedCSSPaddingTop() const { return computedCSSPadding(style() ->paddingTop()); }
186 LayoutUnit computedCSSPaddingBottom() const { return computedCSSPadding(styl e()->paddingBottom()); } 190 LayoutUnit computedCSSPaddingBottom() const { return computedCSSPadding(styl e()->paddingBottom()); }
187 LayoutUnit computedCSSPaddingLeft() const { return computedCSSPadding(style( )->paddingLeft()); } 191 LayoutUnit computedCSSPaddingLeft() const { return computedCSSPadding(style( )->paddingLeft()); }
188 LayoutUnit computedCSSPaddingRight() const { return computedCSSPadding(style ()->paddingRight()); } 192 LayoutUnit computedCSSPaddingRight() const { return computedCSSPadding(style ()->paddingRight()); }
189 LayoutUnit computedCSSPaddingBefore() const { return computedCSSPadding(styl e()->paddingBefore()); } 193 LayoutUnit computedCSSPaddingBefore() const { return computedCSSPadding(styl e()->paddingBefore()); }
190 LayoutUnit computedCSSPaddingAfter() const { return computedCSSPadding(style ()->paddingAfter()); } 194 LayoutUnit computedCSSPaddingAfter() const { return computedCSSPadding(style ()->paddingAfter()); }
191 LayoutUnit computedCSSPaddingStart() const { return computedCSSPadding(style ()->paddingStart()); } 195 LayoutUnit computedCSSPaddingStart() const { return computedCSSPadding(style ()->paddingStart()); }
192 LayoutUnit computedCSSPaddingEnd() const { return computedCSSPadding(style() ->paddingEnd()); } 196 LayoutUnit computedCSSPaddingEnd() const { return computedCSSPadding(style() ->paddingEnd()); }
193 LayoutUnit computedCSSPaddingOver() const { return computedCSSPadding(style( )->paddingOver()); } 197 LayoutUnit computedCSSPaddingOver() const { return computedCSSPadding(style( )->paddingOver()); }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 std::unique_ptr<PaintLayer> m_layer; 380 std::unique_ptr<PaintLayer> m_layer;
377 381
378 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; 382 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData;
379 }; 383 };
380 384
381 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); 385 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject());
382 386
383 } // namespace blink 387 } // namespace blink
384 388
385 #endif // LayoutBoxModelObject_h 389 #endif // LayoutBoxModelObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698