Title: [87453] trunk/Source/WebCore
- Revision
- 87453
- Author
- [email protected]
- Date
- 2011-05-26 17:08:09 -0700 (Thu, 26 May 2011)
Log Message
2011-05-26 Annie Sullivan <[email protected]>
Reviewed by Ryosuke Niwa.
[debug feature] CSSStyleDeclaration should have a way to print cssText
https://bugs.webkit.org/show_bug.cgi?id=61570
Adds a method to print the cssText to stderr for debugging.
* css/CSSStyleDeclaration.cpp:
(WebCore::CSSStyleDeclaration::showStyle): New method to print cssText to stderr
* css/CSSStyleDeclaration.h: New method declaration
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (87452 => 87453)
--- trunk/Source/WebCore/ChangeLog 2011-05-27 00:00:42 UTC (rev 87452)
+++ trunk/Source/WebCore/ChangeLog 2011-05-27 00:08:09 UTC (rev 87453)
@@ -1,3 +1,16 @@
+2011-05-26 Annie Sullivan <[email protected]>
+
+ Reviewed by Ryosuke Niwa.
+
+ [debug feature] CSSStyleDeclaration should have a way to print cssText
+ https://bugs.webkit.org/show_bug.cgi?id=61570
+
+ Adds a method to print the cssText to stderr for debugging.
+
+ * css/CSSStyleDeclaration.cpp:
+ (WebCore::CSSStyleDeclaration::showStyle): New method to print cssText to stderr
+ * css/CSSStyleDeclaration.h: New method declaration
+
2011-05-26 Syed Idris Shah <[email protected]>
Reviewed by Andreas Kling.
Modified: trunk/Source/WebCore/css/CSSStyleDeclaration.cpp (87452 => 87453)
--- trunk/Source/WebCore/css/CSSStyleDeclaration.cpp 2011-05-27 00:00:42 UTC (rev 87452)
+++ trunk/Source/WebCore/css/CSSStyleDeclaration.cpp 2011-05-27 00:08:09 UTC (rev 87453)
@@ -183,4 +183,11 @@
return CSSMutableStyleDeclaration::create(list);
}
+#ifndef NDEBUG
+void CSSStyleDeclaration::showStyle()
+{
+ fprintf(stderr, "%s\n", cssText().ascii().data());
+}
+#endif
+
} // namespace WebCore
Modified: trunk/Source/WebCore/css/CSSStyleDeclaration.h (87452 => 87453)
--- trunk/Source/WebCore/css/CSSStyleDeclaration.h 2011-05-27 00:00:42 UTC (rev 87452)
+++ trunk/Source/WebCore/css/CSSStyleDeclaration.h 2011-05-27 00:08:09 UTC (rev 87453)
@@ -72,6 +72,10 @@
PassRefPtr<CSSMutableStyleDeclaration> copyPropertiesInSet(const int* set, unsigned length) const;
+#ifndef NDEBUG
+ void showStyle();
+#endif
+
protected:
CSSStyleDeclaration(CSSRule* parentRule = 0);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes