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:
Nathan Sobo
2017-02-08 15:48:07 -07:00
committed by Thomas Johansen
parent 0560ce7f18
commit 8bb3ec1563
2 changed files with 6 additions and 7 deletions

View File

@@ -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}) {