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

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

Issue 40733004: Replace compile flag with runtime check for text-underline-position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed a typo in static function compileUnderlineOffset signature / Rebase Created 7 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, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 LayoutUnit logicalTopLayoutOverflow() const 175 LayoutUnit logicalTopLayoutOverflow() const
176 { 176 {
177 return InlineFlowBox::logicalTopLayoutOverflow(lineTop()); 177 return InlineFlowBox::logicalTopLayoutOverflow(lineTop());
178 } 178 }
179 LayoutUnit logicalBottomLayoutOverflow() const 179 LayoutUnit logicalBottomLayoutOverflow() const
180 { 180 {
181 return InlineFlowBox::logicalBottomLayoutOverflow(lineBottom()); 181 return InlineFlowBox::logicalBottomLayoutOverflow(lineBottom());
182 } 182 }
183 183
184 #if ENABLE(CSS3_TEXT)
185 // Used to calculate the underline offset for TextUnderlinePositionUnder. 184 // Used to calculate the underline offset for TextUnderlinePositionUnder.
186 float maxLogicalTop() const; 185 float maxLogicalTop() const;
187 #endif // CSS3_TEXT
188 186
189 Node* getLogicalStartBoxWithNode(InlineBox*&) const; 187 Node* getLogicalStartBoxWithNode(InlineBox*&) const;
190 Node* getLogicalEndBoxWithNode(InlineBox*&) const; 188 Node* getLogicalEndBoxWithNode(InlineBox*&) const;
191 189
192 #ifndef NDEBUG 190 #ifndef NDEBUG
193 virtual const char* boxName() const; 191 virtual const char* boxName() const;
194 #endif 192 #endif
195 private: 193 private:
196 LayoutUnit lineSnapAdjustment(LayoutUnit delta = 0) const; 194 LayoutUnit lineSnapAdjustment(LayoutUnit delta = 0) const;
197 195
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 OwnPtr<LineFragmentationData> m_fragmentationData; 241 OwnPtr<LineFragmentationData> m_fragmentationData;
244 242
245 // Floats hanging off the line are pushed into this vector during layout. It is only 243 // Floats hanging off the line are pushed into this vector during layout. It is only
246 // good for as long as the line has not been marked dirty. 244 // good for as long as the line has not been marked dirty.
247 OwnPtr<Vector<RenderBox*> > m_floats; 245 OwnPtr<Vector<RenderBox*> > m_floats;
248 }; 246 };
249 247
250 } // namespace WebCore 248 } // namespace WebCore
251 249
252 #endif // RootInlineBox_h 250 #endif // RootInlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698