Changeset 87453 in webkit


Ignore:
Timestamp:
May 26, 2011 5:08:09 PM (13 years ago)
Author:
rniwa@webkit.org
Message:

2011-05-26 Annie Sullivan <sullivan@chromium.org>

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
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r87451 r87453  
     12011-05-26  Annie Sullivan  <sullivan@chromium.org>
     2
     3        Reviewed by Ryosuke Niwa.
     4
     5        [debug feature] CSSStyleDeclaration should have a way to print cssText
     6        https://bugs.webkit.org/show_bug.cgi?id=61570
     7
     8        Adds a method to print the cssText to stderr for debugging.
     9
     10        * css/CSSStyleDeclaration.cpp:
     11        (WebCore::CSSStyleDeclaration::showStyle): New method to print cssText to stderr
     12        * css/CSSStyleDeclaration.h: New method declaration
     13
    1142011-05-26  Syed Idris Shah  <syed.idris-shah@nokia.com>
    215
  • trunk/Source/WebCore/css/CSSStyleDeclaration.cpp

    r83118 r87453  
    184184}
    185185
     186#ifndef NDEBUG
     187void CSSStyleDeclaration::showStyle()
     188{
     189    fprintf(stderr, "%s\n", cssText().ascii().data());
     190}
     191#endif
     192
    186193} // namespace WebCore
  • trunk/Source/WebCore/css/CSSStyleDeclaration.h

    r58273 r87453  
    7373    PassRefPtr<CSSMutableStyleDeclaration> copyPropertiesInSet(const int* set, unsigned length) const;
    7474
     75#ifndef NDEBUG
     76    void showStyle();
     77#endif
     78
    7579protected:
    7680    CSSStyleDeclaration(CSSRule* parentRule = 0);
Note: See TracChangeset for help on using the changeset viewer.