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

Side by Side Diff: Source/core/rendering/RenderBox.h

Issue 337473008: Refactor RenderBox::addVisualEffectOverflow() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 LayoutRect contentsVisualOverflowRect() const { return m_overflow ? m_overfl ow->contentsVisualOverflowRect() : LayoutRect(); } 220 LayoutRect contentsVisualOverflowRect() const { return m_overflow ? m_overfl ow->contentsVisualOverflowRect() : LayoutRect(); }
221 221
222 void addLayoutOverflow(const LayoutRect&); 222 void addLayoutOverflow(const LayoutRect&);
223 void addVisualOverflow(const LayoutRect&); 223 void addVisualOverflow(const LayoutRect&);
224 224
225 // Clipped by the contents clip, if one exists. 225 // Clipped by the contents clip, if one exists.
226 void addContentsVisualOverflow(const LayoutRect&); 226 void addContentsVisualOverflow(const LayoutRect&);
227 227
228 void addVisualEffectOverflow(); 228 void addVisualEffectOverflow();
229 LayoutBoxExtent computeVisualEffectOverflowExtent() const;
229 void addOverflowFromChild(RenderBox* child) { addOverflowFromChild(child, ch ild->locationOffset()); } 230 void addOverflowFromChild(RenderBox* child) { addOverflowFromChild(child, ch ild->locationOffset()); }
230 void addOverflowFromChild(RenderBox* child, const LayoutSize& delta); 231 void addOverflowFromChild(RenderBox* child, const LayoutSize& delta);
231 void clearLayoutOverflow(); 232 void clearLayoutOverflow();
232 void clearAllOverflows() { m_overflow.clear(); } 233 void clearAllOverflows() { m_overflow.clear(); }
233 234
234 void updateLayerTransformAfterLayout(); 235 void updateLayerTransformAfterLayout();
235 236
236 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); } 237 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); }
237 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); } 238 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); }
238 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); } 239 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); }
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 if (UNLIKELY(inlineBoxWrapper() != 0)) 775 if (UNLIKELY(inlineBoxWrapper() != 0))
775 deleteLineBoxWrapper(); 776 deleteLineBoxWrapper();
776 } 777 }
777 778
778 ensureRareData().m_inlineBoxWrapper = boxWrapper; 779 ensureRareData().m_inlineBoxWrapper = boxWrapper;
779 } 780 }
780 781
781 } // namespace WebCore 782 } // namespace WebCore
782 783
783 #endif // RenderBox_h 784 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698