Bug 1457920: Remove ServoStyleSheet usage. r=xidorn

MozReview-Commit-ID: LIBkovuQ6MB
This commit is contained in:
Emilio Cobos Álvarez
2018-04-30 19:23:14 +02:00
parent d79c492759
commit be43ec910e
22 changed files with 126 additions and 127 deletions

View File

@@ -2256,7 +2256,7 @@ nsHTMLDocument::TearingDownEditor()
if (!presShell)
return;
nsTArray<RefPtr<ServoStyleSheet>> agentSheets;
nsTArray<RefPtr<StyleSheet>> agentSheets;
presShell->GetAgentStyleSheets(agentSheets);
auto cache = nsLayoutStylesheetCache::Singleton();
@@ -2401,7 +2401,7 @@ nsHTMLDocument::EditingStateChanged()
// Before making this window editable, we need to modify UA style sheet
// because new style may change whether focused element will be focusable
// or not.
nsTArray<RefPtr<ServoStyleSheet>> agentSheets;
nsTArray<RefPtr<StyleSheet>> agentSheets;
rv = presShell->GetAgentStyleSheets(agentSheets);
NS_ENSURE_SUCCESS(rv, rv);