Commit Graph

17 Commits

Author SHA1 Message Date
Antonio Scandurra
f9fb93f214 🎨 2016-03-25 16:37:01 +01:00
Antonio Scandurra
670123a9f7 More fixes in FakeLinesYardstick 2016-03-17 09:28:48 +01:00
Antonio Scandurra
4c8f43f41b Use new APIs in FakeLinesYardstick 2016-03-16 15:15:48 +01:00
Antonio Scandurra
f81843d465 Merge branch 'master' into as-block-decorations 2016-01-14 09:30:06 -07:00
Antonio Scandurra
5c5e108d9b Conform to the new LineTopIndex interface 2016-01-12 11:38:48 -07:00
Nathan Sobo
9f6fbacddd Don’t clip screen positions in yardstick
By clipping positions only in the TextEditorComponent, we can ensure
that we check for the presence of a rendered line for the clipped row
value.
2016-01-04 16:32:38 -07:00
Antonio Scandurra
8c1f0b0e21 Merge branch 'master' into as-block-decorations
# Conflicts:
#	spec/fake-lines-yardstick.coffee
#	spec/lines-yardstick-spec.coffee
#	spec/text-editor-presenter-spec.coffee
#	src/lines-yardstick.coffee
#	src/text-editor-component.coffee
#	src/text-editor-presenter.coffee
2015-12-18 09:59:12 +01:00
Antonio Scandurra
cfb30c795d Use an updated version of LineTopIndex 2015-12-14 15:04:54 +01:00
Nathan Sobo
85c6139579 Don’t force DOM updates in LinesYardstick
Instead, determine the need for a DOM update in the component before
measuring with the lines yardstick, and break `updateSync` into two
explicit pre- and post-measurement phases.
2015-12-10 14:47:05 -07:00
Antonio Scandurra
f30e4ccc9d Use the new LineTopIndex in TextEditorPresenter 2015-12-02 16:01:55 +01:00
Antonio Scandurra
47b16c513c Make sure cursors are updated with respect to block decorations 2015-12-01 09:48:11 +01:00
Antonio Scandurra
539a5b0ae7 🐎 Do as little pixel conversion as possible
We desperately need a tree-based data structure. 😢
2015-11-30 14:34:16 +01:00
Antonio Scandurra
0159d5c31e 🎨 2015-11-27 16:58:08 +01:00
Antonio Scandurra
e1e06580c1 Move position conversion in LinesYardstick 2015-11-27 12:47:47 +01:00
Antonio Scandurra
ff08642d3b Return early in FakeLinesYardstick for unrendered rows
This allows us to have a more consistent behavior with the real LinesYardstick.
2015-11-19 16:32:39 -08:00
Antonio Scandurra
243dea1a1c 🎨 Move pixel-related code to LinesYardstick
* 🔥 Remove useless 'scoped char width' methods
2015-10-01 11:03:25 +02:00
Antonio Scandurra
5dcfea0a82 💚 Fix TextEditorPresenter specs 2015-09-29 16:11:59 +02:00