Changeset 139879 in webkit
- Timestamp:
- Jan 16, 2013 7:13:10 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139874 r139879 1 2013-01-16 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: fix text-editor-highlight-regexp test 4 https://bugs.webkit.org/show_bug.cgi?id=107006 5 6 Reviewed by Vsevolod Vlasov. 7 8 Fixing test expectations: no more height style. 9 10 * inspector/editor/text-editor-highlight-regexp-expected.txt: 11 1 12 2013-01-16 Zan Dobersek <zdobersek@igalia.com> 2 13 -
trunk/LayoutTests/inspector/editor/text-editor-highlight-regexp-expected.txt
r139844 r139879 18 18 <div class="inner-container" tabindex="0"> 19 19 <div class="webkit-line-content">foo();</div> 20 <div class="webkit-line-content">foo_1; foor; foo_;<span class="some-css-class text-editor-overlay-highlight" style="margin-left: -127px; width: 37px; height: 14px;"></span><span class="some-css-class text-editor-overlay-highlight" style="margin-left: -36px; width: 37px; height: 14px;"></span></div>20 <div class="webkit-line-content">foo_1; foor; foo_;<span class="some-css-class text-editor-overlay-highlight" style="margin-left: -127px; width: 37px;"></span><span class="some-css-class text-editor-overlay-highlight" style="margin-left: -36px; width: 37px;"></span></div> 21 21 <div class="webkit-line-content">foo_</div> 22 22 <div class="webkit-line-content">global_foo</div> 23 23 <div class="webkit-line-content">global_foo2</div> 24 <div class="webkit-line-content">some_other_foo_X<span class="some-css-class text-editor-overlay-highlight" style="margin-left: -36px; width: 37px; height: 14px;"></span></div></div>24 <div class="webkit-line-content">some_other_foo_X<span class="some-css-class text-editor-overlay-highlight" style="margin-left: -36px; width: 37px;"></span></div></div> 25 25 26 26 Remove highlight for regexp /foo_./ -
trunk/Source/WebCore/ChangeLog
r139878 r139879 1 2013-01-16 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: fix text-editor-highlight-regexp test 4 https://bugs.webkit.org/show_bug.cgi?id=107006 5 6 Reviewed by Vsevolod Vlasov. 7 8 Use 'height: 100%' instead of pixel values on highlight spans to bring in some platform independency in test expectations. 9 10 No new tests: no changes in behaviour. 11 12 * inspector/front-end/DefaultTextEditor.js: 13 (WebInspector.TextEditorMainPanel.prototype._measureRegex): 14 (WebInspector.TextEditorMainPanel.prototype._appendOverlayHighlight): 15 * inspector/front-end/textEditor.css: 16 (.text-editor-overlay-highlight): 17 (.webkit-line-content): 18 1 19 2013-01-16 Jocelyn Turcotte <jocelyn.turcotte@digia.com> 2 20 -
trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js
r139873 r139879 1945 1945 * @param {string} line 1946 1946 * @param {RegExp} regex 1947 * @return {Array.<{left: number, width: number , height: number}>}1947 * @return {Array.<{left: number, width: number}>} 1948 1948 */ 1949 1949 _measureRegex: function(lineRow, line, regex) … … 1962 1962 metrics.push({ 1963 1963 left: spans[i].offsetLeft, 1964 width: spans[i].offsetWidth, 1965 height: spans[i].offsetHeight 1964 width: spans[i].offsetWidth 1966 1965 }); 1967 1966 return metrics; … … 1983 1982 highlight.style.marginLeft = (metrics[i].left - highlight.offsetLeft - extraWidth) + "px"; 1984 1983 highlight.style.width = (metrics[i].width + extraWidth * 2) + "px"; 1985 highlight.style.height = metrics[i].height + "px";1986 1984 highlight.addStyleClass("text-editor-overlay-highlight"); 1987 1985 } -
trunk/Source/WebCore/inspector/front-end/textEditor.css
r139844 r139879 33 33 .text-editor-overlay-highlight { 34 34 position: absolute; 35 height: 100%; 35 36 pointer-events: none; 36 37 -webkit-user-select: none; … … 54 55 -webkit-user-modify: read-only; 55 56 background-color: rgb(240, 240, 240); 57 } 58 59 .webkit-line-content { 60 position: relative; 56 61 } 57 62
Note: See TracChangeset
for help on using the changeset viewer.