Bug 1195672 - Add |nsAutoCString nsIFrame::ListTag()| for debugging. f=mtseng, r=roc

This make it easier to print a frame tag name in one debug log line.
This commit is contained in:
Ting-Yu Lin 2015-08-19 15:54:10 +08:00
parent df49e88fd2
commit f6d8e741db

View File

@ -34,6 +34,7 @@
#include "nsITheme.h"
#include "nsLayoutUtils.h"
#include "nsQueryFrame.h"
#include "nsStringGlue.h"
#include "nsStyleContext.h"
#include "nsStyleStruct.h"
@ -3225,6 +3226,11 @@ public:
fputs(t.get(), out);
}
void ListTag(nsACString& aTo) const;
nsAutoCString ListTag() const {
nsAutoCString tag;
ListTag(tag);
return tag;
}
static void ListTag(nsACString& aTo, const nsIFrame* aFrame);
void ListGeneric(nsACString& aTo, const char* aPrefix = "", uint32_t aFlags = 0) const;
enum {