diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 01:01:11 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 01:01:11 +0000 |
commit | f68a27df5495fc0850ced470cc8954b4c493ee26 (patch) | |
tree | af8df8bab3cbd8e3e3893e938a921ddafa420891 /chrome/browser/resources/bookmark_manager/css | |
parent | 05d0d7888505656e792b233d69907a81bafb5157 (diff) | |
download | chromium_src-f68a27df5495fc0850ced470cc8954b4c493ee26.zip chromium_src-f68a27df5495fc0850ced470cc8954b4c493ee26.tar.gz chromium_src-f68a27df5495fc0850ced470cc8954b4c493ee26.tar.bz2 |
Bookmark manager: Fix tree indentation
BUG=39228
TEST=Create lots of nested folders (more than 10 levels deep).
Review URL: http://codereview.chromium.org/1539023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/bookmark_manager/css')
-rw-r--r-- | chrome/browser/resources/bookmark_manager/css/tree.css.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/chrome/browser/resources/bookmark_manager/css/tree.css.js b/chrome/browser/resources/bookmark_manager/css/tree.css.js index 74fb06d..66c7e42 100644 --- a/chrome/browser/resources/bookmark_manager/css/tree.css.js +++ b/chrome/browser/resources/bookmark_manager/css/tree.css.js @@ -51,29 +51,3 @@ ctx.closePath(); ctx.stroke(); })(); - -// We need to generate CSS for the indentation. -(function() { - // We need to generat the following - //.tree-item > * > .tree-item > .tree-row { - // -webkit-padding-start: 20px; - //} - - //.tree-item > * .tree-item > * .tree-item > * > .tree-item > .tree-row { - // -webkit-padding-start: 60px; - //} - var style = document.createElement('style'); - - function repeat(s, n) { - return Array(n + 1).join(s); - } - - var s = ''; - for (var i = 1; i < 10; i++) { - s += repeat('.tree-item > * ', i) + '.tree-item > .tree-row {\n' + - '-webkit-padding-start:' + i * 20 + 'px\n' + - '}\n'; - } - style.textContent = s; - document.documentElement.firstElementChild.appendChild(style); -})(); |