- fix -Wmissing-prototypes builds
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Feb 2009 19:28:32 +0000 (19:28 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Feb 2009 19:28:32 +0000 (19:28 +0000)
        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::isHeaderElement): Marked this function static.
        (WebCore::haveSameTagName): Ditto.
        * editing/markup.cpp:
        (WebCore::isSpecialAncestorBlock): Ditto.
        * platform/graphics/transforms/TransformationMatrix.cpp:
        (WebCore::makeMapBetweenRects): Removed unused function.
        * platform/graphics/transforms/TransformationMatrix.h: Removed unused
        declaration of private member makeMapBetweenRects().

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

WebCore/ChangeLog
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/editing/markup.cpp
WebCore/platform/graphics/transforms/TransformationMatrix.cpp
WebCore/platform/graphics/transforms/TransformationMatrix.h

index 17502ad..00f4183 100644 (file)
@@ -1,3 +1,17 @@
+2009-02-09  Dan Bernstein  <mitz@apple.com>
+
+        - fix -Wmissing-prototypes builds
+
+        * editing/ReplaceSelectionCommand.cpp:
+        (WebCore::isHeaderElement): Marked this function static.
+        (WebCore::haveSameTagName): Ditto.
+        * editing/markup.cpp:
+        (WebCore::isSpecialAncestorBlock): Ditto.
+        * platform/graphics/transforms/TransformationMatrix.cpp:
+        (WebCore::makeMapBetweenRects): Removed unused function.
+        * platform/graphics/transforms/TransformationMatrix.h: Removed unused
+        declaration of private member makeMapBetweenRects().
+
 2009-02-09  Adam Treat  <adam.treat@torchmobile.com>
 
         Reviewed by Sam Weinig.
index 4904c7f..bed51bf 100644 (file)
@@ -405,7 +405,8 @@ void ReplaceSelectionCommand::removeNodeAndPruneAncestors(Node* node)
     if (m_firstNodeInserted && !m_firstNodeInserted->inDocument())
         m_firstNodeInserted = m_lastLeafInserted && m_lastLeafInserted->inDocument() ? afterFirst : 0;
 }
-bool isHeaderElement(Node* a)
+
+static bool isHeaderElement(Node* a)
 {
     if (!a)
         return false;
@@ -417,7 +418,7 @@ bool isHeaderElement(Node* a)
            a->hasTagName(h5Tag);
 }
 
-bool haveSameTagName(Node* a, Node* b)
+static bool haveSameTagName(Node* a, Node* b)
 {
     return a && b && a->isElementNode() && b->isElementNode() && static_cast<Element*>(a)->tagName() == static_cast<Element*>(b)->tagName();
 }
index 670974d..b31dd4a 100644 (file)
@@ -701,7 +701,7 @@ static String joinMarkups(const Vector<String>& preMarkups, const Vector<String>
     return String::adopt(result);
 }
 
-bool isSpecialAncestorBlock(Node* node)
+static bool isSpecialAncestorBlock(Node* node)
 {
     if (!node || !isBlock(node))
         return false;
index a7d9f34..b0549a5 100644 (file)
@@ -513,14 +513,6 @@ TransformationMatrix& TransformationMatrix::flipY()
     return scaleNonUniform(1.0f, -1.0f);
 }
 
-TransformationMatrix makeMapBetweenRects(const FloatRect& source, const FloatRect& dest)
-{
-    TransformationMatrix transform;
-    transform.translate(dest.x() - source.x(), dest.y() - source.y());
-    transform.scaleNonUniform(dest.width() / source.width(), dest.height() / source.height());
-    return transform;
-}
-
 FloatPoint TransformationMatrix::projectPoint(const FloatPoint& p) const
 {
     // This is basically raytracing. We have a point in the destination
index 5f229e6..619e69a 100644 (file)
@@ -284,8 +284,6 @@ public:
 #endif
 
 private:
-    TransformationMatrix makeMapBetweenRects(const FloatRect& source, const FloatRect& dest);
-
     // multiply passed 2D point by matrix (assume z=0)
     void multVecMatrix(double x, double y, double& dstX, double& dstY) const;