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

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

Issue 2638013002: Record box shadow as main thread scrolling reasons (Closed)
Patch Set: Record box shadow from where it gets detected && remove translucent border Created 3 years, 11 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 virtual LayoutRect visualOverflowRect() const = 0; 191 virtual LayoutRect visualOverflowRect() const = 0;
192 192
193 // Checks if this box, or any of it's descendants, or any of it's 193 // Checks if this box, or any of it's descendants, or any of it's
194 // continuations, will take up space in the layout of the page. 194 // continuations, will take up space in the layout of the page.
195 bool hasNonEmptyLayoutSize() const; 195 bool hasNonEmptyLayoutSize() const;
196 bool usesCompositedScrolling() const; 196 bool usesCompositedScrolling() const;
197 197
198 // Returns which layers backgrounds should be painted into for overflow 198 // Returns which layers backgrounds should be painted into for overflow
199 // scrolling boxes. 199 // scrolling boxes.
200 BackgroundPaintLocation backgroundPaintLocation() const; 200 BackgroundPaintLocation backgroundPaintLocation(uint32_t* reasons = 0) const;
bokan 2017/01/23 19:55:51 nit: s/0/nullptr Also, please document what the m
yigu 2017/01/23 20:21:23 Done.
201 201
202 // These return the CSS computed padding values. 202 // These return the CSS computed padding values.
203 LayoutUnit computedCSSPaddingTop() const { 203 LayoutUnit computedCSSPaddingTop() const {
204 return computedCSSPadding(style()->paddingTop()); 204 return computedCSSPadding(style()->paddingTop());
205 } 205 }
206 LayoutUnit computedCSSPaddingBottom() const { 206 LayoutUnit computedCSSPaddingBottom() const {
207 return computedCSSPadding(style()->paddingBottom()); 207 return computedCSSPadding(style()->paddingBottom());
208 } 208 }
209 LayoutUnit computedCSSPaddingLeft() const { 209 LayoutUnit computedCSSPaddingLeft() const {
210 return computedCSSPadding(style()->paddingLeft()); 210 return computedCSSPadding(style()->paddingLeft());
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 std::unique_ptr<PaintLayer> m_layer; 526 std::unique_ptr<PaintLayer> m_layer;
527 527
528 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; 528 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData;
529 }; 529 };
530 530
531 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); 531 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject());
532 532
533 } // namespace blink 533 } // namespace blink
534 534
535 #endif // LayoutBoxModelObject_h 535 #endif // LayoutBoxModelObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698