Bug 481739: firstrun_splash.png eats startup time, r=gavin

--HG--
rename : mobile/themes/hildon/firstrun/firstrun.xhtml => mobile/themes/hildon/firstrun/firstrun.html
rename : mobile/themes/wince/firstrun/firstrun.xhtml => mobile/themes/wince/firstrun/firstrun.html
This commit is contained in:
Mark Finkle 2009-03-06 15:26:06 -05:00
parent 5c7e9e9a34
commit 35a50c29ab
21 changed files with 46 additions and 178 deletions

View File

@ -59,7 +59,7 @@ AboutFirstRun.prototype = {
var secMan = Cc["@mozilla.org/scriptsecuritymanager;1"].
getService(Ci.nsIScriptSecurityManager);
var channel = ios.newChannel("chrome://firstrun/content/firstrun.xhtml",
var channel = ios.newChannel("chrome://firstrun/content/firstrun.html",
null, null);
var principal = secMan.getCodebasePrincipal(aURI);

View File

@ -1,3 +0,0 @@
<!ENTITY content.title "Welcome to Fennec">
<!ENTITY dragRight.label "drag this way for your tabs">
<!ENTITY dragLeft.label "drag this way for controls">

View File

@ -1,9 +1,5 @@
#filter substitution
firstrun.jar:
% locale firstrun @AB_CD@ %locale/@AB_CD@/firstrun/
locale/@AB_CD@/firstrun/firstrun.dtd (%chrome/firstrun/firstrun.dtd)
@AB_CD@.jar:
% locale browser @AB_CD@ %locale/@AB_CD@/browser/
locale/@AB_CD@/browser/browser.dtd (%chrome/browser.dtd)

View File

@ -1,63 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is fennec code.
*
* The Initial Developer of the Original Code is
* Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2008
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gavin Sharp <gavin@gavinsharp.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
body {
font-family: "Nokia Sans", sans-serif;
font-size: 14pt;
font-weight: bold;
color: #858585;
margin: 0;
padding: 0;
background: url(chrome://firstrun/content/firstrun_background.jpg) repeat-x;
}
#arrowleft,
#dragleft {
float: right;
-moz-margin-end: 20px;
text-align: right;
}
#arrowright,
#dragright {
float: left;
-moz-margin-start: 20px;
}
#dragleft, #dragright {
width: 130px;
}

View File

@ -1,11 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
<!ENTITY % firstrunDTD SYSTEM "chrome://firstrun/locale/firstrun.dtd" >
%firstrunDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
@ -43,16 +35,24 @@
-
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>&content.title;</title>
<link rel="stylesheet" href="chrome://firstrun/content/firstrun.css" type="text/css"/>
<title>Fennec</title>
<style type="text/css">
html {
margin: 0;
padding: 0;
}
body {
color: #808080;
margin: 0;
padding: 0;
background: url(chrome://firstrun/content/firstrun_background.gif) repeat-x;
}
</style>
</head>
<body>
<div id="splash"><center><img src="chrome://firstrun/content/firstrun_splash.png"/></center></div>
<img id="arrowright" src="chrome://firstrun/content/firstrun_arrow_r.png"/>
<div id="dragright">&dragRight.label;</div>
<img id="arrowleft" src="chrome://firstrun/content/firstrun_arrow_l.png"/>
<div id="dragleft">&dragLeft.label;</div>
<div id="splash"><center><img src="chrome://firstrun/content/firstrun_splash.gif"/></center></div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

View File

@ -2,12 +2,9 @@
firstrun.jar:
% content firstrun %content/ contentaccessible=yes
content/firstrun_splash.png (firstrun/firstrun_splash.png)
content/firstrun_arrow_r.png (firstrun/firstrun_arrow_r.png)
content/firstrun_arrow_l.png (firstrun/firstrun_arrow_l.png)
content/firstrun_background.jpg (firstrun/firstrun_background.jpg)
content/firstrun.css (firstrun/firstrun.css)
content/firstrun.xhtml (firstrun/firstrun.xhtml)
content/firstrun_splash.gif (firstrun/firstrun_splash.gif)
content/firstrun_background.gif (firstrun/firstrun_background.gif)
content/firstrun.html (firstrun/firstrun.html)
classic.jar:
% skin browser classic/1.0 %

View File

@ -1,63 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is fennec code.
*
* The Initial Developer of the Original Code is
* Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2008
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gavin Sharp <gavin@gavinsharp.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
body {
font-family: "Nokia Sans", sans-serif;
font-size: 14pt;
font-weight: bold;
color: #858585;
margin: 0;
padding: 0;
background: url(chrome://firstrun/content/firstrun_background.jpg) repeat-x;
}
#arrowleft,
#dragleft {
float: right;
-moz-margin-end: 20px;
text-align: right;
}
#arrowright,
#dragright {
float: left;
-moz-margin-start: 20px;
}
#dragleft, #dragright {
width: 130px;
}

View File

@ -1,11 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
<!ENTITY % firstrunDTD SYSTEM "chrome://firstrun/locale/firstrun.dtd" >
%firstrunDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
@ -43,16 +35,31 @@
-
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>&content.title;</title>
<link rel="stylesheet" href="chrome://firstrun/content/firstrun.css" type="text/css"/>
<title>Fennec</title>
<style type="text/css">
html {
margin: 0;
padding: 0;
}
body {
font-family: "Nokia Sans", sans-serif;
font-size: 14pt;
font-weight: bold;
color: #808080;
margin: 0;
padding: 0;
background: url(chrome://firstrun/content/firstrun_background.gif) repeat-x;
}
#splash {
width: 920px;
}
</style>
</head>
<body>
<div id="splash"><center><img src="chrome://firstrun/content/firstrun_splash.png"/></center></div>
<img id="arrowright" src="chrome://firstrun/content/firstrun_arrow_r.png"/>
<div id="dragright">&dragRight.label;</div>
<img id="arrowleft" src="chrome://firstrun/content/firstrun_arrow_l.png"/>
<div id="dragleft">&dragLeft.label;</div>
<div id="splash"><center><img src="chrome://firstrun/content/firstrun_splash.gif"/></center></div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

View File

@ -2,12 +2,9 @@
firstrun.jar:
% content firstrun %content/ contentaccessible=yes
content/firstrun_splash.png (firstrun/firstrun_splash.png)
content/firstrun_arrow_r.png (firstrun/firstrun_arrow_r.png)
content/firstrun_arrow_l.png (firstrun/firstrun_arrow_l.png)
content/firstrun_background.jpg (firstrun/firstrun_background.jpg)
content/firstrun.css (firstrun/firstrun.css)
content/firstrun.xhtml (firstrun/firstrun.xhtml)
content/firstrun_splash.gif (firstrun/firstrun_splash.gif)
content/firstrun_background.gif (firstrun/firstrun_background.gif)
content/firstrun.html (firstrun/firstrun.html)
classic.jar:
% skin browser classic/1.0 %