Delete unused TextPainter function
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 19:44:46 +0000 (19:44 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 19:44:46 +0000 (19:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=124292

Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2013-11-13
Reviewed by Tim Horton.

New tests are unnecessary since there is no behavior change

* rendering/TextPainter.cpp:
(WebCore::TextPainter::paintText):
* rendering/TextPainter.h:

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

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

index 28654c3027fcc8871026b59db715dae05658556a..917c0a50b9a5b18ef4ce27d4a88d52849242bd1f 100644 (file)
@@ -1,3 +1,16 @@
+2013-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Delete unused TextPainter function
+        https://bugs.webkit.org/show_bug.cgi?id=124292
+
+        Reviewed by Tim Horton.
+
+        New tests are unnecessary since there is no behavior change
+
+        * rendering/TextPainter.cpp:
+        (WebCore::TextPainter::paintText):
+        * rendering/TextPainter.h:
+
 2013-11-13  Alexey Proskuryakov  <ap@apple.com>
 
         Check WebCrypto parameter types when casting
index d387fb3bbace9145b13e1026358ec4c58cb199ea..fe8549cc55fe83235943f10315fd58b76e622159 100644 (file)
@@ -103,7 +103,7 @@ void TextPainter::paintText()
     ASSERT(m_savedDrawingStateForMask.m_textPaintStyle);
     ASSERT(m_savedDrawingStateForMask.m_selectionPaintStyle);
     
-    FloatPoint boxOrigin = boxRect().location();
+    FloatPoint boxOrigin = m_boxRect.location();
 
     if (!m_paintSelectedTextOnly) {
         // For stroked painting, we have to change the text drawing mode. It's probably dangerous to leave that mutated as a side
index f5f3c59651ffb38e82372457b142dd256a411716..cf855a4ad348cf7aa003f3067211835fc8797a0e 100644 (file)
@@ -64,7 +64,6 @@ public:
     TextRun&, FloatRect& boxRect, FloatPoint& textOrigin, int emphasisMarkOffset, const ShadowData* textShadow, const ShadowData* selectionShadow,
     bool textBoxIsHorizontal, TextPaintStyle& nonSelectionPaintStyle, TextPaintStyle& selectionPaintStyle);
     
-    const FloatRect& boxRect() const { return m_boxRect; }
     void paintText();
     void paintTextInContext(GraphicsContext&, float amountToIncreaseStrokeWidthBy);