Nathan Sobo
c8166c1bb3
Render cursors after measuring horizontal positions
2017-05-05 09:29:27 +02:00
Nathan Sobo
43386b0483
Always update twice assuming we may need to measure
...
This prepares the ground for measuring absoltue cursor positions.
2017-05-05 09:29:27 +02:00
Nathan Sobo
583c2c537d
Iron out scheduling issues
...
* Ensure multiple calls to scheduleUpdate only result in a single call
to updateSync in the future.
* Explicit calls to update sync after scheduling an update fulfill the
scheduled update.
* Track whether we think the editor is visible or not to avoid redundant
didShow calls.
* Ensure we only update on resize events if the editor actually changed
size.
2017-05-05 09:29:27 +02:00
Nathan Sobo
19d1d148eb
Measure the longest visible screen line on initial render
2017-05-05 09:29:27 +02:00
Nathan Sobo
ede5d5e5f4
Add coverage for gutter measurement and horizontal translation on scroll
2017-05-05 09:29:27 +02:00
Nathan Sobo
b863790390
Start on new TextEditorComponent specs; avoid excessive line numbers
2017-05-05 09:29:27 +02:00
Nathan Sobo
9765d9dbcd
Translate gutter so it remains visible when scrolling to the right
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2017-05-05 09:29:27 +02:00
Nathan Sobo
d2d560eac6
Render character measurement line via virtual DOM
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2017-05-05 09:29:27 +02:00
Nathan Sobo
b38fafc83a
Absolutely position line number tiles
...
Static positioning doesn’t seem to improve layout performance
2017-05-05 09:29:27 +02:00
Nathan Sobo
aed4d8876f
Use contain: strict on line number gutter and its tiles
...
This improves layout time of scrolling by limiting the extent of gutter re-layouts.
Signed-off-by: Antonio Scandurra <as-cii@github.com >
2017-05-05 09:29:27 +02:00
Nathan Sobo
f94144ff4b
WIP
2017-05-05 09:29:27 +02:00
Nathan Sobo
f237d70357
WIP
2017-05-05 09:29:27 +02:00
Nathan Sobo
1f068bde62
Enable experimental web platform features
...
This will facilitate #13880
2017-05-03 14:21:24 +02:00
Wliu
c638f8693a
Update spec reporter relativization
...
Electron 1.6 changed the reporting from .<anonymous> to
jasmine.Spec.<anonymous>
2017-05-03 14:21:24 +02:00
Nathan Sobo
9bc53948b7
⬆️ electron to 1.6.5
2017-05-03 14:21:24 +02:00
Antonio Scandurra
d9004769e0
Disable auxclick
2017-05-03 14:21:24 +02:00
Antonio Scandurra
0bd1255b15
Solve CSP issues for all media types
2017-05-03 14:21:24 +02:00
Antonio Scandurra
32db6a46dc
Fix CSP for fonts
2017-05-03 14:21:24 +02:00
Wliu
631861a366
⬆️ electron@1.6.4
...
For Windows sourcemap support
2017-05-03 14:21:24 +02:00
Nathan Sobo
4548fe8358
Upgrade to Electron 1.6.3
2017-05-03 14:21:24 +02:00
Nathan Sobo
c28685c816
Don't use --eval when forking child process in Task
...
There seems to be an Electron bug or something where the child process
isn't receiving messages when --eval is used. It isn't necessary anyway
if we we convert task-bootstrap.coffee to vanilla JS.
2017-05-03 14:21:24 +02:00
Nathan Sobo
06774dbff8
Call compiled functions with Buffer for Electron 1.6 compatibility
2017-05-03 14:21:24 +02:00
Nathan Sobo
cb982d6513
Upgrade to Electron 1.6.2
2017-05-03 14:21:24 +02:00
Nathan Sobo
b6e3806e77
Instantiate elementResizeDetector instances lazily
...
This avoids references to browser globals during snapshot creation.
2017-05-03 14:21:24 +02:00
Nathan Sobo
a723614750
Fix lint error
2017-05-03 14:21:24 +02:00
Nathan Sobo
1c796ed773
⬆️ donna in script dependencies
2017-05-03 14:21:24 +02:00
Nathan Sobo
a0c84d592a
Remove ViewRegistry.pollDocument
...
Supporting it via mutation observers has a bad impact on frame rate.
2017-05-03 14:21:24 +02:00
Nathan Sobo
bbbb629f70
Eliminate polling of overlay decoration dimensions
...
And remove pollDOM method entirely.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Nathan Sobo
549bce5637
Replace sampleBackgroundColors with background-color: inherit in CSS
...
Previously, the shadow boundary made this impossible, but the new CSS is
way simpler than the JS we’re replacing and removes another dependency
on DOM polling.
2017-05-03 14:21:24 +02:00
Nathan Sobo
8bb3ec1563
Synchronously sample font styling when global editor stylesheet changes
...
And don’t sample font styling in pollDOM, which we are aiming to
eliminate.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Nathan Sobo
0560ce7f18
Use window resize events to trigger measureWindowSize
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Nathan Sobo
0d8101b6c3
Synchronously call becameVisible if editor is visible when attached
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Nathan Sobo
cc4c437f3d
Ensure 0-height editors are correctly detected as visible
...
This is unlikely but it’s easy enough to support
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Nathan Sobo
25db2bad04
Null guard destruction of intersection observer
2017-05-03 14:21:24 +02:00
Nathan Sobo
39ac7d99b9
Detect text editor resize via scroll event hack
...
This avoids needing to poll to detect resizes.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Nathan Sobo
1d8b9b84d1
Use IntersectionObserver to detect when editor becomes visible
...
This is an alternative to relying on pollDOM to detect when the editor
becomes visible. Our goal is to remove pollDOM in the next few commits.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com >
2017-05-03 14:21:24 +02:00
Thomas Johansen
27db3bafda
⬆️ electron@1.4.15
2017-05-03 14:21:24 +02:00
Thomas Johansen
797abf96bd
⬆️ electron@1.4.14
2017-05-03 14:21:24 +02:00
Thomas Johansen
f6e5a46a85
⬆️ electron@1.4.13
2017-05-03 14:21:24 +02:00
Thomas Johansen
e63b17a9fe
⬆️ electron-chromedriver
2017-05-03 14:21:24 +02:00
Thomas Johansen
575dc7e5b7
⬆️ electron@1.4.12
2017-05-03 14:21:23 +02:00
Wliu
d5c13d15bf
setZoomLevelLimits -> setVisualZoomLevelLimits
2017-05-03 14:21:23 +02:00
Wliu
dfa3ab1c6e
process.versions.atom-shell -> process.versions.electron
2017-05-03 14:21:23 +02:00
Wliu
38c0f7b036
autoSubmit -> uploadToServer
2017-05-03 14:21:23 +02:00
Thomas Johansen
d23dff2a3c
⬆️ electron@1.4.11
2017-05-03 14:21:23 +02:00
Thomas Johansen
305fb2eac5
⬆️ electron@1.4.10
2017-05-03 14:21:23 +02:00
Thomas Johansen
d446fb4130
⬆️ electron@1.4.7
2017-05-03 14:21:23 +02:00
Wliu
c005f7564a
Remove unneeded backgroundColor
2017-05-03 14:21:23 +02:00
Thomas Johansen
9bc214aa09
⬆️ electron@1.4.6
2017-05-03 14:21:23 +02:00
Thomas Johansen
fc4178f460
⬆️ electron@1.4.5
2017-05-03 14:21:23 +02:00