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

Unified Diff: chrome/browser/resources/bookmark_manager/css/tree.css.js

Issue 1539023: Bookmark manager: Fix tree indentation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
Index: chrome/browser/resources/bookmark_manager/css/tree.css.js
===================================================================
--- chrome/browser/resources/bookmark_manager/css/tree.css.js (revision 43622)
+++ chrome/browser/resources/bookmark_manager/css/tree.css.js (working copy)
@@ -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);
-})();

Powered by Google App Engine
This is Rietveld 408576698