[LFC][IFC] Compute isFirstBox/isLastBox for text content
[WebKit-https.git] / Source / WebInspectorUI / Tools / HTMLFormatter / HTMLTreeBuilderDebug.js
1 HTMLTreeBuilderDebug = class HTMLTreeBuilderDebug
2 {
3     // Public
4
5     get debugText()
6     {
7         return this._lines.join("\n");
8     }
9
10     begin()
11     {
12         console.log("--- Begin ---");
13         this._lines = [];
14     }
15
16     pushParserNode(node)
17     {
18         console.log(node);
19         this._lines.push(JSON.stringify(node));
20     }
21
22     end()
23     {
24         console.log("--- End ---");
25     }
26 }