Commit Graph

34 Commits

Author SHA1 Message Date
Antonio Scandurra
175c21f47e Cache built text nodes 2015-10-06 10:35:01 +02:00
Antonio Scandurra
dede68011f Recycle text nodes in lines 2015-10-06 10:18:05 +02:00
Antonio Scandurra
c79cc87172 Prepare DOMElementPool to account for text nodes 2015-10-06 10:02:04 +02:00
Antonio Scandurra
56488748db 🔥 Remove dead code 2015-10-05 14:37:22 +02:00
Antonio Scandurra
72093da1a7 🔥 🎉 Remove scoped character width 2015-09-29 17:32:20 +02:00
Antonio Scandurra
6f7b98178c Fix linting errors 2015-09-28 15:40:43 +02:00
Antonio Scandurra
af41b71cd8 Redesign LinesYardstick 2015-09-20 12:10:09 +02:00
Antonio Scandurra
d78c166d6b Merge branch 'master' into as-double-reflow-measurements 2015-09-17 11:32:26 +02:00
Antonio Scandurra
42e58f1dd3 💚 Use tokenizedLine.id to refer to lines 2015-09-17 11:10:32 +02:00
Antonio Scandurra
8b52538213 Pool highlight elements 2015-09-17 10:35:20 +02:00
Antonio Scandurra
bae4d7d336 🔥 2015-09-16 17:59:04 +02:00
Antonio Scandurra
a6c13d097a Render the longest screen row without painting it 2015-09-15 16:53:55 +02:00
Antonio Scandurra
ad83a03440 Merge branch 'master' into as-recycle-nodes
# Conflicts:
#	src/line-numbers-tile-component.coffee
#	src/lines-tile-component.coffee
2015-09-15 11:50:54 +02:00
Antonio Scandurra
ce4281821d Replace insertAdjacentText with textContent 2015-09-14 20:31:21 +02:00
Antonio Scandurra
f0bc6ca23a 🎨 Some renaming 2015-09-14 20:27:25 +02:00
Antonio Scandurra
4349b152d5 🎨 2015-09-14 18:22:31 +02:00
Antonio Scandurra
f52e000bec 🔥 Remove unused code 2015-09-14 18:14:12 +02:00
Antonio Scandurra
6b2e7a6765 🎨 2015-09-14 17:36:45 +02:00
Antonio Scandurra
ece15b2a24 Recycle tile nodes (and descendants) 2015-09-14 14:48:30 +02:00
Antonio Scandurra
ccb8623a88 🎨 Extract a buildElement helper function 2015-09-14 12:01:33 +02:00
Antonio Scandurra
9af7795a7e Avoid skipping null bytes
Now that we build DOM nodes via `document.createElement`, there's no need to
skip null byte characters (nor to avoid to pair them) because the browser will
keep them in the document (unlike `innerHTML`).
2015-09-14 11:45:29 +02:00
Antonio Scandurra
a44f7116a2 Start building nodes via document.createElement 2015-09-14 11:34:13 +02:00
Antonio Scandurra
de0b61393c Minimize allocations 2015-09-14 10:57:59 +02:00
Antonio Scandurra
246476f759 🎨 2015-09-09 14:26:47 +02:00
Antonio Scandurra
b997b8c189 🔥 Remove line node style.top 2015-09-08 18:52:25 +02:00
Antonio Scandurra
1d1fb4caef 🎨 2015-09-08 17:23:41 +02:00
Antonio Scandurra
23cb2740cd 🐎 Remove class from tiles 2015-09-08 16:44:44 +02:00
Antonio Scandurra
848b4ed564 Order line nodes by screen row 2015-09-07 19:47:45 +02:00
Antonio Scandurra
e374425d7a Render tiles upper in the stack in front of the ones below 2015-07-27 20:16:36 +02:00
Nathan Sobo
442e75853b Base textNodeLength on textNode.textContent.length
This is how we were computing the length previously. Not sure what the
difference is but I want to keep it the same.
2015-07-09 00:18:42 -05:00
Nathan Sobo
08fe81844c Guard against IndexSizeError when measuring lines
Refs #7464 #7465 #5997

This will ask the user for the content of the offending line, but only
once so as not to be annoying. Hopefully this and the other data we’re
collecting will help us solve the problem.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-07-07 19:33:21 -05:00
Antonio Scandurra
e190d441ed 🔥 2015-06-13 14:25:50 +02:00
Antonio Scandurra
e893b5105b Remove presenter as a dependency where possible
Although we have a couple of components which still access it, we
agreed it would have been just better to avoid relying on
`TextEditorPresenter` where possible and use it purposefully in other
places (e.g. `LinesComponent` which needs it to store text
measurements).

/cc: @jssln
2015-06-13 14:18:36 +02:00
Antonio Scandurra
374aaac7b5 Rename to LinesTileComponent 2015-06-12 18:32:40 +02:00