⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176521 in webkit


Ignore:
Timestamp:
Nov 24, 2014, 10:07:13 AM (12 years ago)
Author:
Antti Koivisto
Message:

Remove unused Style struct from SimpleLineLayout.cpp
https://bugs.webkit.org/show_bug.cgi?id=139027

Reviewed by Sam Weinig.

It was moved to FlowContents.

  • rendering/SimpleLineLayout.cpp:

(WebCore::SimpleLineLayout::Style::Style): Deleted.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176520 r176521  
     12014-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
    1132014-11-24  peavo@outlook.com  <peavo@outlook.com>
    214
  • trunk/Source/WebCore/rendering/SimpleLineLayout.cpp

    r176510 r176521  
    192192    return true;
    193193}
    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 };
    216194
    217195static float computeLineLeft(ETextAlign textAlign, float availableWidth, float committedWidth, float logicalLeftOffset)
Note: See TracChangeset for help on using the changeset viewer.