summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/StylePropertySet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/StylePropertySet.cpp')
-rw-r--r--Source/WebCore/css/StylePropertySet.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/WebCore/css/StylePropertySet.cpp b/Source/WebCore/css/StylePropertySet.cpp
index caeda8896..ac7eacd8c 100644
--- a/Source/WebCore/css/StylePropertySet.cpp
+++ b/Source/WebCore/css/StylePropertySet.cpp
@@ -33,6 +33,12 @@
#include <wtf/BitVector.h>
#include <wtf/text/StringBuilder.h>
+#ifndef NDEBUG
+#include <stdio.h>
+#include <wtf/ASCIICType.h>
+#include <wtf/text/CString.h>
+#endif
+
using namespace std;
namespace WebCore {
@@ -1023,4 +1029,11 @@ class SameSizeAsStylePropertySet : public RefCounted<SameSizeAsStylePropertySet>
};
COMPILE_ASSERT(sizeof(StylePropertySet) == sizeof(SameSizeAsStylePropertySet), style_property_set_should_stay_small);
+#ifndef NDEBUG
+void StylePropertySet::showStyle()
+{
+ fprintf(stderr, "%s\n", asText().ascii().data());
+}
+#endif
+
} // namespace WebCore