Remove unnecessary function from TextPainter
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Sep 2014 23:10:31 +0000 (23:10 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Sep 2014 23:10:31 +0000 (23:10 +0000)
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173241 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/TextPainter.cpp
Source/WebCore/rendering/TextPainter.h

index 913311bd18893bfb15497d875f4332670c5d5dea..10733e7a716c8575b0ea2eda129224e1eb864cfa 100644 (file)
@@ -1,3 +1,18 @@
+2014-09-03  Myles C. Maxfield  <mmaxfield@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  <andersca@apple.com>
 
         Don't use DEPRECATED_DEFINE_STATIC_LOCAL for mutexes
index 56d00c66ad3ba91085e5c51dd5282f5540405ce2..38f1b845dfd217a01a16666fe2f930407c5964e3 100644 (file)
@@ -168,22 +168,6 @@ void TextPainter::paintText()
     }
 }
 
-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)
 {
index 4934e35374f3decdd0df7d8b14f109799332101c..8dd4cf7bf4582d3a27c883e07aad2c02e04f82b1 100644 (file)
@@ -66,7 +66,6 @@ public:
     bool textBoxIsHorizontal, TextPaintStyle& nonSelectionPaintStyle, TextPaintStyle& selectionPaintStyle);
     
     void paintText();
-    void paintTextInContext(GraphicsContext&, float amountToIncreaseStrokeWidthBy);
 
     DashArray dashesForIntersectionsWithRect(const FloatRect& lineExtents);