Title: [92888] trunk/Source/WebCore
Revision
92888
Author
[email protected]
Date
2011-08-11 16:19:43 -0700 (Thu, 11 Aug 2011)

Log Message

Remove dead code: borderInnerRect
https://bugs.webkit.org/show_bug.cgi?id=66087

Reviewed by Adam Barth.

Removing an old and currently unused function: RenderObject::borderInnerRect.

No new tests since I'm just pruning dead code.

* rendering/RenderObject.cpp:
* rendering/RenderObject.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (92887 => 92888)


--- trunk/Source/WebCore/ChangeLog	2011-08-11 23:18:23 UTC (rev 92887)
+++ trunk/Source/WebCore/ChangeLog	2011-08-11 23:19:43 UTC (rev 92888)
@@ -1,3 +1,17 @@
+2011-08-11  Levi Weintraub  <[email protected]>
+
+        Remove dead code: borderInnerRect
+        https://bugs.webkit.org/show_bug.cgi?id=66087
+
+        Reviewed by Adam Barth.
+
+        Removing an old and currently unused function: RenderObject::borderInnerRect.
+
+        No new tests since I'm just pruning dead code.
+
+        * rendering/RenderObject.cpp:
+        * rendering/RenderObject.h:
+
 2011-08-11  Simon Fraser  <[email protected]>
 
         Avoid adding the visible wash layer twice

Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (92887 => 92888)


--- trunk/Source/WebCore/rendering/RenderObject.cpp	2011-08-11 23:18:23 UTC (rev 92887)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp	2011-08-11 23:19:43 UTC (rev 92888)
@@ -914,15 +914,6 @@
     }
 }
 
-IntRect RenderObject::borderInnerRect(const IntRect& borderRect, unsigned short topWidth, unsigned short bottomWidth, unsigned short leftWidth, unsigned short rightWidth) const
-{
-    return IntRect(
-            borderRect.x() + leftWidth, 
-            borderRect.y() + topWidth, 
-            borderRect.width() - leftWidth - rightWidth, 
-            borderRect.height() - topWidth - bottomWidth);
-}
-
 #if !HAVE(PATH_BASED_BORDER_RADIUS_DRAWING)
 void RenderObject::drawArcForBoxSide(GraphicsContext* graphicsContext, int x, int y, float thickness, const IntSize& radius,
                                      int angleStart, int angleSpan, BoxSide s, Color color,

Modified: trunk/Source/WebCore/rendering/RenderObject.h (92887 => 92888)


--- trunk/Source/WebCore/rendering/RenderObject.h	2011-08-11 23:18:23 UTC (rev 92887)
+++ trunk/Source/WebCore/rendering/RenderObject.h	2011-08-11 23:19:43 UTC (rev 92888)
@@ -463,9 +463,6 @@
                            int angleSpan, BoxSide, Color, EBorderStyle, bool firstCorner);
 #endif
 
-    IntRect borderInnerRect(const IntRect&, unsigned short topWidth, unsigned short bottomWidth,
-                            unsigned short leftWidth, unsigned short rightWidth) const;
-
     // The pseudo element style can be cached or uncached.  Use the cached method if the pseudo element doesn't respect
     // any pseudo classes (and therefore has no concept of changing state).
     RenderStyle* getCachedPseudoStyle(PseudoId, RenderStyle* parentStyle = 0) const;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to