Add a StyleSheets log channel and some logging
https://bugs.webkit.org/show_bug.cgi?id=227880
Reviewed by Alan Bujtas.
Source/WebCore:
Add some logging to help debug issues when pages dynamically build style sheets.
Also make Document loggable.
* css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::insertRule):
(WebCore::CSSStyleSheet::deleteRule):
(WebCore::CSSStyleSheet::addRule):
(WebCore::CSSStyleSheet::debugDescription const):
* css/CSSStyleSheet.h:
* css/StyleSheet.cpp:
(WebCore::operator<<):
* css/StyleSheet.h:
* dom/Document.cpp:
(WebCore::Document::debugDescription const):
(WebCore::operator<<):
* dom/Document.h:
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::process):
(WebCore::HTMLLinkElement::debugDescription const):
* html/HTMLLinkElement.h:
* platform/Logging.h:
* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::dumpProperties const):
* platform/graphics/filters/FilterEffect.cpp:
(WebCore::FilterEffect::imageBufferResult):
* style/StyleScope.cpp:
(WebCore::Style::Scope::addPendingSheet):
(WebCore::Style::Scope::addStyleSheetCandidateNode):
(WebCore::Style::Scope::collectActiveStyleSheets):
(WebCore::Style::Scope::updateActiveStyleSheets):
* xml/XSLStyleSheet.h:
* xml/XSLStyleSheetLibxslt.cpp:
(WebCore::XSLStyleSheet::debugDescription const):
Source/WTF:
Make it possible to feed Ref<> and RefPtr<> into TextStream.
* wtf/text/TextStream.h:
(WTF::operator<<):
Canonical link: https://commits.webkit.org/239602@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279847 268f45cc-cd09-0410-ab3c-d52691b4dbfc