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

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

Issue 25048006: Attempt to clean up requiresLayoutToDetermineWidth to be more clear (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: MATCH THE CHUNKS HARDER Created 7 years, 2 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) 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin gMode() ? contentHeight() : contentWidth(); } 209 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin gMode() ? contentHeight() : contentWidth(); }
210 210
211 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin es (RenderFlow) 211 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin es (RenderFlow)
212 // to return the remaining width on a given line (and the height of a single line). 212 // to return the remaining width on a given line (and the height of a single line).
213 virtual LayoutUnit offsetWidth() const { return width(); } 213 virtual LayoutUnit offsetWidth() const { return width(); }
214 virtual LayoutUnit offsetHeight() const { return height(); } 214 virtual LayoutUnit offsetHeight() const { return height(); }
215 215
216 virtual int pixelSnappedOffsetWidth() const OVERRIDE FINAL; 216 virtual int pixelSnappedOffsetWidth() const OVERRIDE FINAL;
217 virtual int pixelSnappedOffsetHeight() const OVERRIDE FINAL; 217 virtual int pixelSnappedOffsetHeight() const OVERRIDE FINAL;
218 218
219 bool requiresLayoutToDetermineWidth() const; 219 bool canDetermineWidthWithoutLayout() const;
220 LayoutUnit fixedOffsetWidth() const; 220 LayoutUnit fixedOffsetWidth() const;
221 221
222 // More IE extensions. clientWidth and clientHeight represent the interior of an object 222 // More IE extensions. clientWidth and clientHeight represent the interior of an object
223 // excluding border and scrollbar. clientLeft/Top are just the borderLeftWi dth and borderTopWidth. 223 // excluding border and scrollbar. clientLeft/Top are just the borderLeftWi dth and borderTopWidth.
224 LayoutUnit clientLeft() const { return borderLeft(); } 224 LayoutUnit clientLeft() const { return borderLeft(); }
225 LayoutUnit clientTop() const { return borderTop(); } 225 LayoutUnit clientTop() const { return borderTop(); }
226 LayoutUnit clientWidth() const; 226 LayoutUnit clientWidth() const;
227 LayoutUnit clientHeight() const; 227 LayoutUnit clientHeight() const;
228 LayoutUnit clientLogicalWidth() const { return style()->isHorizontalWritingM ode() ? clientWidth() : clientHeight(); } 228 LayoutUnit clientLogicalWidth() const { return style()->isHorizontalWritingM ode() ? clientWidth() : clientHeight(); }
229 LayoutUnit clientLogicalHeight() const { return style()->isHorizontalWriting Mode() ? clientHeight() : clientWidth(); } 229 LayoutUnit clientLogicalHeight() const { return style()->isHorizontalWriting Mode() ? clientHeight() : clientWidth(); }
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 if (UNLIKELY(m_inlineBoxWrapper != 0)) 764 if (UNLIKELY(m_inlineBoxWrapper != 0))
765 deleteLineBoxWrapper(); 765 deleteLineBoxWrapper();
766 } 766 }
767 767
768 m_inlineBoxWrapper = boxWrapper; 768 m_inlineBoxWrapper = boxWrapper;
769 } 769 }
770 770
771 } // namespace WebCore 771 } // namespace WebCore
772 772
773 #endif // RenderBox_h 773 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698