Commit Graph

204 Commits

Author SHA1 Message Date
Nathan Sobo
661607857f Fix spec failures due to slight changes in DOM positioning 2015-10-16 11:08:52 -06:00
Antonio Scandurra
b03aa4bf40 Merge branch 'master' into as-cjk-soft-wrap
# Conflicts:
#	spec/display-buffer-spec.coffee
2015-10-16 10:23:44 +02:00
Antonio Scandurra
4766c98bbe Treat Korean characters as different kinds of chars 2015-10-15 21:02:21 +02:00
Antonio Scandurra
c9eb75cbe1 📝 Better wording on specs 2015-10-15 20:14:38 +02:00
Antonio Scandurra
7394cc531c Measure half width characters 2015-10-15 20:06:38 +02:00
Antonio Scandurra
abf306943a 🐛 Measure latin chars with subpixel font scaling 2015-10-15 18:49:54 +02:00
Antonio Scandurra
4c66341624 Measure double width char widths 2015-10-15 18:08:35 +02:00
Antonio Scandurra
20b0523833 💚 2015-10-15 16:41:27 +02:00
Nathan Sobo
4c51d29868 Merge remote-tracking branch 'origin/master' into ns-alternative-test-env 2015-10-07 16:10:29 -05:00
Max Brunsfeld
5aee514ef5 🔥 debuggers 2015-10-07 15:25:05 -05:00
Nathan Sobo
b7d6dd5e8c Reset view registry in AtomEnvironment::reset 2015-10-07 15:25:02 -05:00
Antonio Scandurra
112ee01bd9 Don't use atom globals in TextEditorElement
...except when the element is instantiated via HTML
2015-10-07 15:25:01 -05:00
Nathan Sobo
eb2ace37b4 Move TextEditor construction to Workspace
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:56 -05:00
Antonio Scandurra
beb7896234 Enable subpixel font scaling
For certain font sizes, enabling `textRendering: optimizeLegibility` caused a
bunch of measurement-related issues. You can reproduce it by setting the following in your stylesheet:

```
atom-text-editor {
  font-size: 14px;
  text-rendering: optimizeLegibility;
}
```

Although I wanted to defer subpixel font scaling to a later moment, it seems
like Chrome needs to have it enabled in order to properly support the
"legibility" path for text rendering. (I guess this is part of the reason why
the Chromium team enabled it by default at some point in the past.)
2015-10-02 18:14:09 +02:00
Antonio Scandurra
33523751ea Thoroughly test LinesYardstick interactions 2015-10-01 18:34:41 +02:00
Antonio Scandurra
bca3be32e6 Avoid to call ::prepareScreenRows explicitly 2015-09-30 16:23:49 +02:00
Antonio Scandurra
5270a1da1c Use LinesYardstick in pixelPositionForScreenPosition 2015-09-29 15:44:05 +02:00
Antonio Scandurra
b481250757 Always render the longest screen row 2015-09-29 11:41:44 +02:00
Antonio Scandurra
49577313e4 Remove yardstick to start with a clean slate 2015-09-29 10:25:54 +02:00
Antonio Scandurra
aec72e5ed6 Fix soft-wrapping spec 2015-09-28 15:43:13 +02:00
Antonio Scandurra
a870252702 🔥 Remove unused code 2015-09-26 18:04:15 +02:00
Antonio Scandurra
a96af2465f 🎨 Use ::setWidth and ::setHeight 2015-09-25 13:26:30 +02:00
Antonio Scandurra
b0d70a63c6 Prevent default event for actions that won't lead to scrolling 2015-09-25 10:55:03 +02:00
Antonio Scandurra
d65b5d1793 Revert "Maintain scroll history"
This reverts commit 2e6bb53303.
2015-09-25 10:31:48 +02:00
Antonio Scandurra
2e6bb53303 Maintain scroll history 2015-09-24 16:25:58 +02:00
Antonio Scandurra
99e77dc09d Port leftover specs from DisplayBuffer 2015-09-24 11:41:02 +02:00
Antonio Scandurra
91ef57ed29 Merge branch 'master' into as-display-buffer-logical-coordinates
# Conflicts:
#	src/display-buffer.coffee
2015-09-23 18:46:16 +02:00
Antonio Scandurra
36b0aa0126 🔥 2015-09-23 18:45:32 +02:00
Antonio Scandurra
87c7a0ae30 💚 Fix some TextEditorComponent specs 2015-09-23 16:25:50 +02:00
Antonio Scandurra
60fdd3793f Stop reporting scroll positions to the model 2015-09-23 15:34:44 +02:00
Antonio Scandurra
5d42dd557a Finish porting TextEditor specs 2015-09-23 15:34:43 +02:00
Antonio Scandurra
4136c195c9 Port .scrollToCursorPosition() specs 2015-09-23 15:34:42 +02:00
Antonio Scandurra
0ccb34de42 wip 2015-09-23 15:34:42 +02:00
Antonio Scandurra
25735b2ee1 Port autoscroll when selecting buffer ranges 2015-09-23 15:34:42 +02:00
Antonio Scandurra
7f3160eba6 Port .selectLinesContainingCursors() specs 2015-09-23 15:34:42 +02:00
Antonio Scandurra
57a006d19b Start porting scroll-related specs 2015-09-23 15:34:41 +02:00
Antonio Scandurra
37fb253bfd Prevent default for mousewheel event on mini editors
(ref. 0346e58)
2015-09-23 15:34:27 +02:00
Antonio Scandurra
ddd7aacd9d 💚 Fix TextEditorComponent specs 2015-09-23 15:34:22 +02:00
Nathan Sobo
36ba0bded3 Don’t assert about unsubscription due to API support going away 2015-09-22 10:37:07 -06:00
Nathan Sobo
c7ecad5576 Remove EditorView 2015-09-18 20:48:45 -06:00
Antonio Scandurra
12b926c82a 🔥 2015-09-17 17:15:51 +02:00
Antonio Scandurra
3575928cce Move continuous reflow setting into TextEditorElement 2015-09-17 17:14:00 +02:00
Antonio Scandurra
91bb8f518d Merge branch 'master' into as-continuous-reflow 2015-09-17 16:58:37 +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
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
51050bde19 Remove z-index specs 2015-09-08 19:37:41 +02:00
Antonio Scandurra
23cb2740cd 🐎 Remove class from tiles 2015-09-08 16:44:44 +02:00
Antonio Scandurra
786cd82e26 💚 2015-09-08 16:28:19 +02:00
Antonio Scandurra
e2590f78d1 📝 Fix wording on specs 2015-09-07 14:09:44 +02:00
Antonio Scandurra
c865e6123f 💚 2015-09-07 13:49:54 +02:00