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

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

Issue 2539713004: Update layout location documentation to reflect renames. (Closed)
Patch Set: Feedback. Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/README.md ('k') | no next file » | 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) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 ASSERT(!m_hasBadParent); 213 ASSERT(!m_hasBadParent);
214 return m_parent; 214 return m_parent;
215 } 215 }
216 void setParent(InlineFlowBox* par) { m_parent = par; } 216 void setParent(InlineFlowBox* par) { m_parent = par; }
217 217
218 const RootInlineBox& root() const; 218 const RootInlineBox& root() const;
219 RootInlineBox& root(); 219 RootInlineBox& root();
220 220
221 // x() is the location of the box in the containing block's "physical 221 // x() is the location of the box in the containing block's "physical
222 // coordinates with flipped block-flow direction". 222 // coordinates with flipped block-flow direction".
223 // See../README.md#Coordinate-Spaces for the definition. 223 // See ../README.md#Coordinate-Spaces for the definition.
224 void setX(LayoutUnit x) { m_location.setX(x); } 224 void setX(LayoutUnit x) { m_location.setX(x); }
225 LayoutUnit x() const { return m_location.x(); } 225 LayoutUnit x() const { return m_location.x(); }
226 226
227 // y() is the top side of the box in the containing block's physical 227 // y() is the top side of the box in the containing block's physical
228 // coordinates. It's actually in the same coordinate space as x() but for y() 228 // coordinates. It's actually in the same coordinate space as x() but for y()
229 // physical coordinates and "physical coordinates with flipped block-flow 229 // physical coordinates and "physical coordinates with flipped block-flow
230 // direction" are the same. 230 // direction" are the same.
231 void setY(LayoutUnit y) { m_location.setY(y); } 231 void setY(LayoutUnit y) { m_location.setY(y); }
232 LayoutUnit y() const { return m_location.y(); } 232 LayoutUnit y() const { return m_location.y(); }
233 233
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 569
570 } // namespace blink 570 } // namespace blink
571 571
572 #ifndef NDEBUG 572 #ifndef NDEBUG
573 // Outside the WebCore namespace for ease of invocation from gdb. 573 // Outside the WebCore namespace for ease of invocation from gdb.
574 void showTree(const blink::InlineBox*); 574 void showTree(const blink::InlineBox*);
575 void showLineTree(const blink::InlineBox*); 575 void showLineTree(const blink::InlineBox*);
576 #endif 576 #endif
577 577
578 #endif // InlineBox_h 578 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698