Title: [176521] trunk/Source/WebCore
Revision
176521
Author
[email protected]
Date
2014-11-24 10:07:13 -0800 (Mon, 24 Nov 2014)

Log 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.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (176520 => 176521)


--- trunk/Source/WebCore/ChangeLog	2014-11-24 17:02:25 UTC (rev 176520)
+++ trunk/Source/WebCore/ChangeLog	2014-11-24 18:07:13 UTC (rev 176521)
@@ -1,3 +1,15 @@
+2014-11-24  Antti Koivisto  <[email protected]>
+
+        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.
+
 2014-11-24  [email protected]  <[email protected]>
 
         [Curl] Compile error in ResourceHandleManager.cpp.

Modified: trunk/Source/WebCore/rendering/SimpleLineLayout.cpp (176520 => 176521)


--- trunk/Source/WebCore/rendering/SimpleLineLayout.cpp	2014-11-24 17:02:25 UTC (rev 176520)
+++ trunk/Source/WebCore/rendering/SimpleLineLayout.cpp	2014-11-24 18:07:13 UTC (rev 176521)
@@ -192,28 +192,6 @@
     return true;
 }
 
-struct Style {
-    Style(const RenderStyle& style)
-        : font(style.font())
-        , textAlign(style.textAlign())
-        , collapseWhitespace(style.collapseWhiteSpace())
-        , preserveNewline(style.preserveNewline())
-        , wrapLines(style.autoWrap())
-        , breakWordOnOverflow(style.overflowWrap() == BreakOverflowWrap && (wrapLines || preserveNewline))
-        , spaceWidth(font.width(TextRun(&space, 1)))
-        , tabWidth(collapseWhitespace ? 0 : style.tabSize())
-    {
-    }
-    const Font& font;
-    ETextAlign textAlign;
-    bool collapseWhitespace;
-    bool preserveNewline;
-    bool wrapLines;
-    bool breakWordOnOverflow;
-    float spaceWidth;
-    unsigned tabWidth;
-};
-
 static float computeLineLeft(ETextAlign textAlign, float availableWidth, float committedWidth, float logicalLeftOffset)
 {
     float remainingWidth = availableWidth - committedWidth;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to