Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4348)

Unified Diff: chrome/browser/resources/downloads.html

Issue 119318: Fix the in-progress download status in the download page for the RTL UI (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads.html
===================================================================
--- chrome/browser/resources/downloads.html (revision 17954)
+++ chrome/browser/resources/downloads.html (working copy)
@@ -203,6 +203,10 @@
node.style.display = isShow ? 'inline' : 'none';
}
+function showInlineBlock(node, isShow) {
+ node.style.display = isShow ? 'inline-block' : 'none';
+}
+
/**
* Creates an element of a specified type with a specified class name.
* @param {String} type The node type.
@@ -511,7 +515,11 @@
}
showInline(this.nodeFileLink_, this.state_ == Download.States.COMPLETE);
- showInline(this.nodeFileName_, this.state_ != Download.States.COMPLETE);
+ // nodeFileName_ has to be inline-block to avoid the 'interaction' with
+ // nodeStatus_. If both are inline, it appears that their text contents
+ // are merged before BiDi algorithm is applied leading to an undesirable
+ // reordering.
jeremy 2009/06/10 01:21:09 BiDi algorithm -> The bidi Algorithm Also, could
+ showInlineBlock(this.nodeFileName_, this.state_ != Download.States.COMPLETE);
if (this.state_ == Download.States.IN_PROGRESS) {
this.nodeProgressForeground_.style.display = 'block';
@@ -530,9 +538,8 @@
Download.Progress.radius,
Download.Progress.base,
Download.Progress.base + Math.PI * 0.02 *
- Number(this.percent_) *
- (Download.Progress.dir ? -1 : 1),
- Download.Progress.dir);
+ Number(this.percent_),
+ false);
jeremy 2009/06/10 01:21:09 Could you add a comment with a link back to the bu
this.canvasProgress_.lineTo(Download.Progress.centerX,
Download.Progress.centerY);
@@ -657,7 +664,6 @@
function load() {
localStrings = new LocalStrings($('l10n'));
- Download.Progress.dir = document.documentElement.dir == 'rtl';
downloads = new Downloads();
$('term').focus();
setSearch("");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698