Title: [93316] trunk/Source/WebCore
Revision
93316
Author
[email protected]
Date
2011-08-18 09:56:19 -0700 (Thu, 18 Aug 2011)

Log Message

Fix clang libc++ C++0x build
https://bugs.webkit.org/show_bug.cgi?id=66475

Reviewed by Adam Roben.

Remove calls to isnan and isfinite with integer arguments.

* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::viewport):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (93315 => 93316)


--- trunk/Source/WebCore/ChangeLog	2011-08-18 16:43:53 UTC (rev 93315)
+++ trunk/Source/WebCore/ChangeLog	2011-08-18 16:56:19 UTC (rev 93316)
@@ -1,3 +1,17 @@
+2011-08-18  Anders Carlsson  <[email protected]>
+
+        Fix clang libc++ C++0x build
+        https://bugs.webkit.org/show_bug.cgi?id=66475
+
+        Reviewed by Adam Roben.
+
+        Remove calls to isnan and isfinite with integer arguments.
+
+        * css/CSSPrimitiveValue.cpp:
+        (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::viewport):
+
 2011-08-18  Andrey Kosyakov  <[email protected]>
 
         Web Inspector: [Extensions API] rename webInspector.resources to webInspector.network

Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.cpp (93315 => 93316)


--- trunk/Source/WebCore/css/CSSPrimitiveValue.cpp	2011-08-18 16:43:53 UTC (rev 93315)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.cpp	2011-08-18 16:56:19 UTC (rev 93316)
@@ -159,7 +159,6 @@
             break;
         case WebCore::Fixed:
             m_type = CSS_PX;
-            ASSERT(isfinite(length.value()));
             m_value.num = length.value();
             break;
         case Intrinsic:

Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp (93315 => 93316)


--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp	2011-08-18 16:43:53 UTC (rev 93315)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp	2011-08-18 16:56:19 UTC (rev 93316)
@@ -3897,14 +3897,6 @@
 {
     if (isContextLost())
         return;
-    if (isnan(x))
-        x = 0;
-    if (isnan(y))
-        y = 0;
-    if (isnan(width))
-        width = 100;
-    if (isnan(height))
-        height = 100;
     if (!validateSize(width, height))
         return;
     m_context->viewport(x, y, width, height);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to