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

Side by Side Diff: Source/core/rendering/InlineBox.cpp

Issue 699683002: Continue with InlineBox float->LayoutUnit migration. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 showBox(printedCharacters); 105 showBox(printedCharacters);
106 } 106 }
107 107
108 void InlineBox::showBox(int printedCharacters) const 108 void InlineBox::showBox(int printedCharacters) const
109 { 109 {
110 printedCharacters += fprintf(stderr, "%s\t%p", boxName(), this); 110 printedCharacters += fprintf(stderr, "%s\t%p", boxName(), this);
111 for (; printedCharacters < showTreeCharacterOffset; printedCharacters++) 111 for (; printedCharacters < showTreeCharacterOffset; printedCharacters++)
112 fputc(' ', stderr); 112 fputc(' ', stderr);
113 fprintf(stderr, "\t%s %p {pos=%g,%g size=%g,%g} baseline=%i/%i\n", 113 fprintf(stderr, "\t%s %p {pos=%g,%g size=%g,%g} baseline=%i/%i\n",
114 renderer().renderName(), &renderer(), x(), y(), width(), height(), 114 renderer().renderName(), &renderer(), WILL_BE_LAYOUT_UNIT_TO_FLOAT(x()), WILL_BE_LAYOUT_UNIT_TO_FLOAT(y()), WILL_BE_LAYOUT_UNIT_TO_FLOAT(width()), WILL_ BE_LAYOUT_UNIT_TO_FLOAT(height()),
115 baselinePosition(AlphabeticBaseline), 115 baselinePosition(AlphabeticBaseline),
116 baselinePosition(IdeographicBaseline)); 116 baselinePosition(IdeographicBaseline));
117 } 117 }
118 #endif 118 #endif
119 119
120 FloatWillBeLayoutUnit InlineBox::logicalHeight() const 120 FloatWillBeLayoutUnit InlineBox::logicalHeight() const
121 { 121 {
122 if (hasVirtualLogicalHeight()) 122 if (hasVirtualLogicalHeight())
123 return virtualLogicalHeight(); 123 return virtualLogicalHeight();
124 124
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 b->showTreeForThis(); 356 b->showTreeForThis();
357 } 357 }
358 358
359 void showLineTree(const blink::InlineBox* b) 359 void showLineTree(const blink::InlineBox* b)
360 { 360 {
361 if (b) 361 if (b)
362 b->showLineTreeForThis(); 362 b->showLineTreeForThis();
363 } 363 }
364 364
365 #endif 365 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698