Build fix for windows
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2007 02:07:51 +0000 (02:07 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2007 02:07:51 +0000 (02:07 +0000)
        * page/Frame.cpp:
        (WebCore::Frame::firstRectForRange):

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

WebCore/ChangeLog
WebCore/page/Frame.cpp

index 8052897e88fb00aea3565f914d7076e9eace63c4..0020faae4b41751e3968241c2918008f83d0c29e 100644 (file)
@@ -1,3 +1,10 @@
+2007-07-11  Oliver Hunt  <oliver@apple.com>
+
+        Build fix for windows
+
+        * page/Frame.cpp:
+        (WebCore::Frame::firstRectForRange):
+
 2007-07-11  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Maciej.
index f58494c770cc4637a36d0fafacd093fe37a6f34c..7b2d036333a06d98401e259d872bac156e717726 100644 (file)
@@ -326,10 +326,10 @@ IntRect Frame::firstRectForRange(Range* range) const
     
     if (startCaretRect.y() == endCaretRect.y()) {
         // start and end are on the same line
-        return IntRect(MIN(startCaretRect.x(), endCaretRect.x()), 
+        return IntRect(min(startCaretRect.x(), endCaretRect.x()), 
                        startCaretRect.y(), 
                        abs(endCaretRect.x() - startCaretRect.x()),
-                       MAX(startCaretRect.height(), endCaretRect.height()));
+                       max(startCaretRect.height(), endCaretRect.height()));
     }
     
     // start and end aren't on the same line, so go from start to the end of its line