Title: [116253] trunk/Source/WebCore
Revision
116253
Author
[email protected]
Date
2012-05-06 17:45:13 -0700 (Sun, 06 May 2012)

Log Message

InlineBox::setHasBadParent should be debug only
https://bugs.webkit.org/show_bug.cgi?id=85748

Patch by Rob Buis <[email protected]> on 2012-05-06
Reviewed by Eric Seidel.

Do not provide InlineBox::setHasBadParent in release builds.

* rendering/InlineBox.h:
(InlineBox):
(WebCore):
(WebCore::InlineBox::setHasBadParent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (116252 => 116253)


--- trunk/Source/WebCore/ChangeLog	2012-05-07 00:26:43 UTC (rev 116252)
+++ trunk/Source/WebCore/ChangeLog	2012-05-07 00:45:13 UTC (rev 116253)
@@ -1,3 +1,17 @@
+2012-05-06  Rob Buis  <[email protected]>
+
+        InlineBox::setHasBadParent should be debug only
+        https://bugs.webkit.org/show_bug.cgi?id=85748
+
+        Reviewed by Eric Seidel.
+
+        Do not provide InlineBox::setHasBadParent in release builds.
+
+        * rendering/InlineBox.h:
+        (InlineBox):
+        (WebCore):
+        (WebCore::InlineBox::setHasBadParent):
+
 2012-05-06  Mike West  <[email protected]>
 
         KURL::isBlankURL would be a nicer idiom than KURL::protocolIs("about")

Modified: trunk/Source/WebCore/rendering/InlineBox.h (116252 => 116253)


--- trunk/Source/WebCore/rendering/InlineBox.h	2012-05-07 00:26:43 UTC (rev 116252)
+++ trunk/Source/WebCore/rendering/InlineBox.h	2012-05-07 00:45:13 UTC (rev 116253)
@@ -265,7 +265,9 @@
     // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system.
     virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibleRightEdge, float ellipsisWidth, bool&);
 
+#ifndef NDEBUG
     void setHasBadParent();
+#endif
 
     int expansion() const { return m_bitfields.expansion(); }
 
@@ -418,12 +420,12 @@
 }
 #endif
 
+#ifndef NDEBUG
 inline void InlineBox::setHasBadParent()
 {
-#ifndef NDEBUG
     m_hasBadParent = true;
+}
 #endif
-}
 
 } // namespace WebCore
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to