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

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: 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | Source/core/rendering/RenderBox.cpp » ('J')
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 LayoutRect overflowRectForPaintRejection() const; 218 LayoutRect overflowRectForPaintRejection() const;
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 bool hasVisualEffectOverflow() const { return style()->boxShadow() || style( )->hasBorderImageOutsets() || style()->hasOutline(); }
Julien - ping for review 2014/07/01 23:00:16 https://codereview.chromium.org/204843002 landed w
Xianzhu 2014/07/02 00:02:03 Done.
228 void addVisualEffectOverflow(); 229 void addVisualEffectOverflow();
230 LayoutBoxExtent computeVisualEffectOverflowExtent() const;
229 void addOverflowFromChild(RenderBox* child) { addOverflowFromChild(child, ch ild->locationOffset()); } 231 void addOverflowFromChild(RenderBox* child) { addOverflowFromChild(child, ch ild->locationOffset()); }
230 void addOverflowFromChild(RenderBox* child, const LayoutSize& delta); 232 void addOverflowFromChild(RenderBox* child, const LayoutSize& delta);
231 void clearLayoutOverflow(); 233 void clearLayoutOverflow();
232 void clearAllOverflows() { m_overflow.clear(); } 234 void clearAllOverflows() { m_overflow.clear(); }
233 235
234 void updateLayerTransformAfterLayout(); 236 void updateLayerTransformAfterLayout();
235 237
236 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); } 238 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); }
237 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); } 239 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); }
238 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); } 240 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); }
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 if (UNLIKELY(inlineBoxWrapper() != 0)) 775 if (UNLIKELY(inlineBoxWrapper() != 0))
774 deleteLineBoxWrapper(); 776 deleteLineBoxWrapper();
775 } 777 }
776 778
777 ensureRareData().m_inlineBoxWrapper = boxWrapper; 779 ensureRareData().m_inlineBoxWrapper = boxWrapper;
778 } 780 }
779 781
780 } // namespace WebCore 782 } // namespace WebCore
781 783
782 #endif // RenderBox_h 784 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | Source/core/rendering/RenderBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698