mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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>
This commit is contained in:
committed by
Thomas Johansen
parent
0560ce7f18
commit
8bb3ec1563
@@ -64,7 +64,6 @@ class WorkspaceElement extends HTMLElement {
|
||||
line-height: ${this.config.get('editor.lineHeight')};
|
||||
}`
|
||||
this.styleManager.addStyleSheet(styleSheetSource, {sourcePath: 'global-text-editor-styles', priority: -1})
|
||||
this.viewRegistry.performDocumentPoll()
|
||||
}
|
||||
|
||||
initialize (model, {config, project, styleManager, viewRegistry}) {
|
||||
|
||||
Reference in New Issue
Block a user