Index: Source/web/AutofillPopupMenuClient.cpp |
diff --git a/Source/web/AutofillPopupMenuClient.cpp b/Source/web/AutofillPopupMenuClient.cpp |
index d3455ba11a5b64a7e167180325fc3cbfae357146..b9072c7113b533add5e418d254f3d778db88b82a 100644 |
--- a/Source/web/AutofillPopupMenuClient.cpp |
+++ b/Source/web/AutofillPopupMenuClient.cpp |
@@ -226,7 +226,7 @@ void AutofillPopupMenuClient::setTextFromItem(unsigned listIndex) |
FontSelector* AutofillPopupMenuClient::fontSelector() const |
{ |
- return m_textField->document().ensureStyleResolver().fontSelector(); |
+ return m_textField->document().styleEngine()->fontSelector(); |
} |
HostWindow* AutofillPopupMenuClient::hostWindow() const |
@@ -285,7 +285,7 @@ void AutofillPopupMenuClient::initialize( |
regularFontDescription.setComputedSize(style->fontDescription().computedSize()); |
Font regularFont(regularFontDescription, 0, 0); |
- regularFont.update(textField->document().ensureStyleResolver().fontSelector()); |
+ regularFont.update(textField->document().styleEngine()->fontSelector()); |
// The direction of text in popup menu is set the same as the direction of |
// the input element: textField. |
m_regularStyle = adoptPtr(new PopupMenuStyle(Color::black, Color::white, regularFont, true, false, |