Changeset 141230 in webkit
- Timestamp:
- Jan 30, 2013 12:05:23 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141228 r141230 1 2013-01-30 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: DTE adds additional space to the end of line. 4 https://bugs.webkit.org/show_bug.cgi?id=108192 5 6 Reviewed by Pavel Feldman. 7 8 Append overlay highlight spans before decorations elements and skip 9 them in _collectLinesFromDom method. 10 11 No new tests. 12 13 * inspector/front-end/DefaultTextEditor.js: 14 (WebInspector.TextEditorMainPanel.prototype._appendOverlayHighlight): 15 (WebInspector.TextEditorMainPanel.prototype._collectLinesFromDOM): 16 1 17 2013-01-29 Shinya Kawanaka <shinyak@chromium.org> 2 18 -
trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js
r141111 r141230 1881 1881 for(var i = 0; i < metrics.length; ++i) { 1882 1882 var highlightSpan = document.createElement("span"); 1883 highlightSpan._isOverlayHighlightElement = true; 1883 1884 highlightSpan.addStyleClass(cssClass); 1884 1885 highlightSpan.style.left = (metrics[i].left - extraWidth) + "px"; … … 1886 1887 highlightSpan.textContent = " "; 1887 1888 highlightSpan.addStyleClass("text-editor-overlay-highlight"); 1888 lineRow. appendChild(highlightSpan);1889 lineRow.insertBefore(highlightSpan, lineRow.decorationsElement); 1889 1890 } 1890 1891 }, … … 2574 2575 var hasContent = false; 2575 2576 for (var node = from ? from.nextSibling : this._container; node && node !== to; node = node.traverseNextNode(this._container)) { 2576 if (node._isDecorationsElement) {2577 // Skip all children of the decoration container.2577 // Skip all children of the decoration container and overlay highlight spans. 2578 while (node && node !== to && (node._isDecorationsElement || node._isOverlayHighlightElement)) 2578 2579 node = node.nextSibling; 2579 2580 2581 } 2580 if (!node || node === to) 2581 break; 2582 2582 2583 hasContent = true; 2583 2584 if (node.nodeName.toLowerCase() === "br")
Note: See TracChangeset
for help on using the changeset viewer.