Changeset 140691 in webkit
- Timestamp:
- Jan 24, 2013 9:39:18 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140689 r140691 1 2013-01-24 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: expand more chunks in DTE 4 https://bugs.webkit.org/show_bug.cgi?id=107698 5 6 Reviewed by Pavel Feldman. 7 8 Correct text expectation as we change amount of expanded chunks. 9 10 * inspector/editor/text-editor-selection-expected.txt: 11 1 12 2013-01-24 Ádám Kallai <kadam@inf.u-szeged.hu> 2 13 -
trunk/LayoutTests/inspector/editor/text-editor-selection-expected.txt
r135606 r140691 3 3 Chunk model 4 4 Chunk [0] 0:9 (expanded) 5 Chunk [1] 9:18 ( collapsed)5 Chunk [1] 9:18 (expanded) 6 6 Chunk [2] 18:27 (collapsed) 7 7 Chunk [3] 27:34 (collapsed) -
trunk/Source/WebCore/ChangeLog
r140685 r140691 1 2013-01-24 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: expand more chunks in DTE 4 https://bugs.webkit.org/show_bug.cgi?id=107698 5 6 Reviewed by Pavel Feldman. 7 8 Mock DefaultTextEditor visible area as if it is slightly larger than real one and 9 do all chunk expandings and repaints based on this new area. 10 11 No new tests: no change in behaviour. 12 13 * inspector/front-end/DefaultTextEditor.js: 14 (WebInspector.TextEditorChunkedPanel.prototype.findVisibleChunks): 15 1 16 2013-01-24 Victor Jaquez <vjaquez@igalia.com> 2 17 -
trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js
r140556 r140691 895 895 findVisibleChunks: function(visibleFrom, visibleTo) 896 896 { 897 var span = (visibleTo - visibleFrom) * 0.5; 898 visibleFrom = Math.max(visibleFrom - span, 0); 899 visibleTo = visibleTo + span; 900 897 901 var from = this._findFirstVisibleChunkNumber(visibleFrom); 898 902 for (var to = from + 1; to < this._textChunks.length; ++to) {
Note: See TracChangeset
for help on using the changeset viewer.