Changeset 176521 in webkit
- Timestamp:
- Nov 24, 2014, 10:07:13 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
rendering/SimpleLineLayout.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r176520 r176521 1 2014-11-24 Antti Koivisto <antti@apple.com> 2 3 Remove unused Style struct from SimpleLineLayout.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=139027 5 6 Reviewed by Sam Weinig. 7 8 It was moved to FlowContents. 9 10 * rendering/SimpleLineLayout.cpp: 11 (WebCore::SimpleLineLayout::Style::Style): Deleted. 12 1 13 2014-11-24 peavo@outlook.com <peavo@outlook.com> 2 14 -
trunk/Source/WebCore/rendering/SimpleLineLayout.cpp
r176510 r176521 192 192 return true; 193 193 } 194 195 struct Style {196 Style(const RenderStyle& style)197 : font(style.font())198 , textAlign(style.textAlign())199 , collapseWhitespace(style.collapseWhiteSpace())200 , preserveNewline(style.preserveNewline())201 , wrapLines(style.autoWrap())202 , breakWordOnOverflow(style.overflowWrap() == BreakOverflowWrap && (wrapLines || preserveNewline))203 , spaceWidth(font.width(TextRun(&space, 1)))204 , tabWidth(collapseWhitespace ? 0 : style.tabSize())205 {206 }207 const Font& font;208 ETextAlign textAlign;209 bool collapseWhitespace;210 bool preserveNewline;211 bool wrapLines;212 bool breakWordOnOverflow;213 float spaceWidth;214 unsigned tabWidth;215 };216 194 217 195 static float computeLineLeft(ETextAlign textAlign, float availableWidth, float committedWidth, float logicalLeftOffset)
Note:
See TracChangeset
for help on using the changeset viewer.