From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- dom/xml/resources/XMLMonoPrint.css | 11 +++ dom/xml/resources/XMLPrettyPrint.css | 41 +++++++++++ dom/xml/resources/XMLPrettyPrint.xml | 43 +++++++++++ dom/xml/resources/XMLPrettyPrint.xsl | 137 +++++++++++++++++++++++++++++++++++ dom/xml/resources/jar.mn | 9 +++ dom/xml/resources/moz.build | 7 ++ 6 files changed, 248 insertions(+) create mode 100644 dom/xml/resources/XMLMonoPrint.css create mode 100644 dom/xml/resources/XMLPrettyPrint.css create mode 100644 dom/xml/resources/XMLPrettyPrint.xml create mode 100644 dom/xml/resources/XMLPrettyPrint.xsl create mode 100644 dom/xml/resources/jar.mn create mode 100644 dom/xml/resources/moz.build (limited to 'dom/xml/resources') diff --git a/dom/xml/resources/XMLMonoPrint.css b/dom/xml/resources/XMLMonoPrint.css new file mode 100644 index 000000000..598daba22 --- /dev/null +++ b/dom/xml/resources/XMLMonoPrint.css @@ -0,0 +1,11 @@ +@charset "UTF-8"; +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url("chrome://global/content/xml/XMLPrettyPrint.css"); + +#top > .expander-open { + font-family: monospace; + white-space: pre; +} diff --git a/dom/xml/resources/XMLPrettyPrint.css b/dom/xml/resources/XMLPrettyPrint.css new file mode 100644 index 000000000..efc7ab5e5 --- /dev/null +++ b/dom/xml/resources/XMLPrettyPrint.css @@ -0,0 +1,41 @@ +@charset "UTF-8"; +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url("resource://gre-resources/viewsource.css"); + +#header { + background-color: #ccc; + border-bottom: 3px solid black; + padding: 0.5em; + margin-bottom: 1em; +} + +.expander-content { + padding-left: 1em; +} + +.expander { + cursor: pointer; + -moz-user-select: none; + text-align: center; + vertical-align: top; + width: 1em; + display: inline-block; + margin-left: -1em; +} + +#top > .expander-open, #top > .expander-closed { + margin-left: 1em; +} + +.expander-closed > .expander-content { + display: none; +} + +.comment { + font-family: monospace; + white-space: pre; +} + diff --git a/dom/xml/resources/XMLPrettyPrint.xml b/dom/xml/resources/XMLPrettyPrint.xml new file mode 100644 index 000000000..522d37210 --- /dev/null +++ b/dom/xml/resources/XMLPrettyPrint.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dom/xml/resources/XMLPrettyPrint.xsl b/dom/xml/resources/XMLPrettyPrint.xsl new file mode 100644 index 000000000..bdd9b7287 --- /dev/null +++ b/dom/xml/resources/XMLPrettyPrint.xsl @@ -0,0 +1,137 @@ + + + + + %prettyPrintDTD; + + %globalDTD; +]> + + + + + + + + + + + + + +
+ < + + + /> +
+
+ + +
+ < + + + > + + + + </ + + > +
+
+ + +
+ + + < + + + > + +
+ + </ + + > +
+
+ + + + + = + "" + + + + + + + + + +
+ <? + + + + ?> +
+
+ + +
+ + + + <? + + +
+ + ?> + +
+
+ + +
+ <!-- + + --> +
+
+ + +
+ + + + <!-- + +
+ +
+ + --> + +
+
+ + +
+
+ +
diff --git a/dom/xml/resources/jar.mn b/dom/xml/resources/jar.mn new file mode 100644 index 000000000..4ad311385 --- /dev/null +++ b/dom/xml/resources/jar.mn @@ -0,0 +1,9 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +toolkit.jar: + content/global/xml/XMLPrettyPrint.css (XMLPrettyPrint.css) + content/global/xml/XMLMonoPrint.css (XMLMonoPrint.css) + content/global/xml/XMLPrettyPrint.xml (XMLPrettyPrint.xml) + content/global/xml/XMLPrettyPrint.xsl (XMLPrettyPrint.xsl) diff --git a/dom/xml/resources/moz.build b/dom/xml/resources/moz.build new file mode 100644 index 000000000..eb4454d28 --- /dev/null +++ b/dom/xml/resources/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file -- cgit v1.2.3