Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/child/contentPolicy.js

Issue 29329839: Issue 3228 - Unbreak object tabs (Closed)
Patch Set: Created Nov. 6, 2015, 7:45 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/child/objectTabs.js » ('j') | lib/child/objectTabs.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 21 matching lines...) Expand all
32 catch (e) 32 catch (e)
33 { 33 {
34 Cu.reportError(e); 34 Cu.reportError(e);
35 } 35 }
36 36
37 let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); 37 let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {});
38 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); 38 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
39 39
40 let {Utils} = require("utils"); 40 let {Utils} = require("utils");
41 let {getFrames, isPrivate} = require("child/utils"); 41 let {getFrames, isPrivate} = require("child/utils");
42 let {objectMouseEventHander} = require("objectTabs"); 42 let {objectMouseEventHander} = require("child/objectTabs");
43 let {RequestNotifier} = require("child/requestNotifier"); 43 let {RequestNotifier} = require("child/requestNotifier");
44 44
45 /** 45 /**
46 * Randomly generated class name, to be applied to collapsed nodes. 46 * Randomly generated class name, to be applied to collapsed nodes.
47 * @type string 47 * @type string
48 */ 48 */
49 let collapsedClass = null; 49 let collapsedClass = null;
50 50
51 /** 51 /**
52 * Maps numerical content type IDs to strings. 52 * Maps numerical content type IDs to strings.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 let property = (hasCols ? "cols" : "rows"); 367 let property = (hasCols ? "cols" : "rows");
368 let weights = parentNode[property].split(","); 368 let weights = parentNode[property].split(",");
369 weights[index] = "0"; 369 weights[index] = "0";
370 parentNode[property] = weights.join(","); 370 parentNode[property] = weights.join(",");
371 } 371 }
372 } 372 }
373 else 373 else
374 node.classList.add(collapsedClass); 374 node.classList.add(collapsedClass);
375 } 375 }
376 } 376 }
OLDNEW
« no previous file with comments | « no previous file | lib/child/objectTabs.js » ('j') | lib/child/objectTabs.js » ('J')

Powered by Google App Engine
This is Rietveld