Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 448103 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.webtools/web/webtools/cssOutliner.js (-4 / +2 lines)
Lines 62-79 Link Here
62
							if (sel.parts && sel.parts.length > 0){
62
							if (sel.parts && sel.parts.length > 0){
63
								var part = sel.parts[0]; // We want to check instanceof SelectorPart, but it is not API
63
								var part = sel.parts[0]; // We want to check instanceof SelectorPart, but it is not API
64
								if (line === null) { line = part.line; }
64
								if (line === null) { line = part.line; }
65
								if (col === null) { col = part.col; }
65
								if (col === null) { col = part.col-1; }
66
								if (length === null){
66
								if (length === null){
67
									length = part.text.length;
67
									length = part.text.length;
68
									if (length > 0){ length--; /*length range is inclusive*/}
69
								}
68
								}
70
							}
69
							}
71
							// If no valid parts found, just use the entire selector text
70
							// If no valid parts found, just use the entire selector text
72
							if (line === null) { line = sel.line; }
71
							if (line === null) { line = sel.line; }
73
							if (col === null) { col = sel.col; }
72
							if (col === null) { col = sel.col-1; }
74
							if (length === null) {
73
							if (length === null) {
75
								length = sel.text.length;
74
								length = sel.text.length;
76
								if (length > 0){ length--; /*length range is inclusive*/}
77
							}
75
							}
78
							selectorText.push(sel.text);
76
							selectorText.push(sel.text);
79
						}
77
						}

Return to bug 448103