Title: [173241] trunk/Source/WebCore
Revision
173241
Author
mmaxfi...@apple.com
Date
2014-09-03 16:10:31 -0700 (Wed, 03 Sep 2014)

Log Message

Remove unnecessary function from TextPainter
https://bugs.webkit.org/show_bug.cgi?id=136497

Reviewed by Simon Fraser.

Function is never called.

No new tests because there is no behavior change.

* rendering/TextPainter.cpp:
(WebCore::TextPainter::paintTextInContext): Deleted.
* rendering/TextPainter.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (173240 => 173241)


--- trunk/Source/WebCore/ChangeLog	2014-09-03 22:56:48 UTC (rev 173240)
+++ trunk/Source/WebCore/ChangeLog	2014-09-03 23:10:31 UTC (rev 173241)
@@ -1,3 +1,18 @@
+2014-09-03  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        Remove unnecessary function from TextPainter
+        https://bugs.webkit.org/show_bug.cgi?id=136497
+
+        Reviewed by Simon Fraser.
+
+        Function is never called.
+
+        No new tests because there is no behavior change.
+
+        * rendering/TextPainter.cpp:
+        (WebCore::TextPainter::paintTextInContext): Deleted.
+        * rendering/TextPainter.h:
+
 2014-09-03  Anders Carlsson  <ander...@apple.com>
 
         Don't use DEPRECATED_DEFINE_STATIC_LOCAL for mutexes

Modified: trunk/Source/WebCore/rendering/TextPainter.cpp (173240 => 173241)


--- trunk/Source/WebCore/rendering/TextPainter.cpp	2014-09-03 22:56:48 UTC (rev 173240)
+++ trunk/Source/WebCore/rendering/TextPainter.cpp	2014-09-03 23:10:31 UTC (rev 173241)
@@ -168,22 +168,6 @@
     }
 }
 
-void TextPainter::paintTextInContext(GraphicsContext& context, float amountToIncreaseStrokeWidthBy)
-{
-    SavedDrawingStateForMask savedDrawingStateForMask = m_savedDrawingStateForMask;
-    
-    ASSERT(m_savedDrawingStateForMask.m_textPaintStyle);
-    ASSERT(m_savedDrawingStateForMask.m_selectionPaintStyle);
-    m_savedDrawingStateForMask.m_context = &context;
-    m_savedDrawingStateForMask.m_textPaintStyle->strokeWidth += amountToIncreaseStrokeWidthBy;
-    m_savedDrawingStateForMask.m_selectionPaintStyle->strokeWidth += amountToIncreaseStrokeWidthBy;
-    m_savedDrawingStateForMask.m_textShadow = nullptr;
-    m_savedDrawingStateForMask.m_selectionShadow = nullptr;
-    paintText();
-
-    m_savedDrawingStateForMask = savedDrawingStateForMask;
-}
-
 #if ENABLE(CSS3_TEXT_DECORATION_SKIP_INK)
 DashArray TextPainter::dashesForIntersectionsWithRect(const FloatRect& lineExtents)
 {

Modified: trunk/Source/WebCore/rendering/TextPainter.h (173240 => 173241)


--- trunk/Source/WebCore/rendering/TextPainter.h	2014-09-03 22:56:48 UTC (rev 173240)
+++ trunk/Source/WebCore/rendering/TextPainter.h	2014-09-03 23:10:31 UTC (rev 173241)
@@ -66,7 +66,6 @@
     bool textBoxIsHorizontal, TextPaintStyle& nonSelectionPaintStyle, TextPaintStyle& selectionPaintStyle);
     
     void paintText();
-    void paintTextInContext(GraphicsContext&, float amountToIncreaseStrokeWidthBy);
 
     DashArray dashesForIntersectionsWithRect(const FloatRect& lineExtents);
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to