Title: [159214] trunk/Source/WebCore
Revision
159214
Author
[email protected]
Date
2013-11-13 11:44:46 -0800 (Wed, 13 Nov 2013)

Log Message

Delete unused TextPainter function
https://bugs.webkit.org/show_bug.cgi?id=124292

Patch by Myles C. Maxfield <[email protected]> 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:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (159213 => 159214)


--- trunk/Source/WebCore/ChangeLog	2013-11-13 19:33:15 UTC (rev 159213)
+++ trunk/Source/WebCore/ChangeLog	2013-11-13 19:44:46 UTC (rev 159214)
@@ -1,3 +1,16 @@
+2013-11-13  Myles C. Maxfield  <[email protected]>
+
+        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  <[email protected]>
 
         Check WebCrypto parameter types when casting

Modified: trunk/Source/WebCore/rendering/TextPainter.cpp (159213 => 159214)


--- trunk/Source/WebCore/rendering/TextPainter.cpp	2013-11-13 19:33:15 UTC (rev 159213)
+++ trunk/Source/WebCore/rendering/TextPainter.cpp	2013-11-13 19:44:46 UTC (rev 159214)
@@ -103,7 +103,7 @@
     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

Modified: trunk/Source/WebCore/rendering/TextPainter.h (159213 => 159214)


--- trunk/Source/WebCore/rendering/TextPainter.h	2013-11-13 19:33:15 UTC (rev 159213)
+++ trunk/Source/WebCore/rendering/TextPainter.h	2013-11-13 19:44:46 UTC (rev 159214)
@@ -64,7 +64,6 @@
     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);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to