| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 "use strict"; | 5 "use strict"; |
| 6 | 6 |
| 7 installClass("Document", function(DocumentPrototype) { | 7 privateScriptController.installClass("Document", function(DocumentPrototype) { |
| 8 // FIXME: The stylesheet should be defined in a separate css file | 8 // FIXME: The stylesheet should be defined in a separate css file |
| 9 var styleSheet = [ | 9 var styleSheet = [ |
| 10 "div.header {", | 10 "div.header {", |
| 11 " border-bottom: 2px solid black;", | 11 " border-bottom: 2px solid black;", |
| 12 " padding-bottom: 5px;", | 12 " padding-bottom: 5px;", |
| 13 " margin: 10px;", | 13 " margin: 10px;", |
| 14 "}", | 14 "}", |
| 15 "", | 15 "", |
| 16 "div.collapsible > div.hidden {", | 16 "div.collapsible > div.hidden {", |
| 17 " display:none;", | 17 " display:none;", |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 { | 457 { |
| 458 // To prevent selection on double click | 458 // To prevent selection on double click |
| 459 e.preventDefault(); | 459 e.preventDefault(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 DocumentPrototype.transformDocumentToTreeView = function(noStyleMessage) { | 462 DocumentPrototype.transformDocumentToTreeView = function(noStyleMessage) { |
| 463 prepareWebKitXMLViewer(noStyleMessage); | 463 prepareWebKitXMLViewer(noStyleMessage); |
| 464 } | 464 } |
| 465 }); | 465 }); |
| 466 | 466 |
| OLD | NEW |