Bug 1461933 - Remove ServoBindings.h from ComputedStyleInline.h. r=emilio

For doing this, ServoComputedData is split into separate files, so that
files don't need to include ServoBindings.h just for accessing style
structs from ComputedStyles.

MozReview-Commit-ID: DPAd7PUUCl9
This commit is contained in:
Xidorn Quan
2018-05-16 15:35:59 +10:00
parent 5f9e9f4daa
commit b755665128
16 changed files with 159 additions and 116 deletions

View File

@@ -10,6 +10,7 @@
#include <time.h>
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/dom/Element.h"
#include "mozilla/Logging.h"
#include "mozilla/Mutex.h"
#include "mozilla/Preferences.h"
@@ -982,7 +983,7 @@ nsRFPService::GetSpoofedKeyCodeInfo(const nsIDocument* aDoc,
// If the content-langauge is not given, we try to get langauge from the HTML
// lang attribute.
if (language.IsEmpty()) {
Element* elm = aDoc->GetHtmlElement();
dom::Element* elm = aDoc->GetHtmlElement();
if (elm) {
elm->GetLang(language);