Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2116)

Unified Diff: Source/web/AutofillPopupMenuClient.cpp

Issue 87503003: Moving fontSelector from StyleResolver to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reverted hasAnyFontFaceRule Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/AutofillPopupMenuClient.cpp
diff --git a/Source/web/AutofillPopupMenuClient.cpp b/Source/web/AutofillPopupMenuClient.cpp
index f0be9fd845f887cb4c962a26952db8ddf0910f1c..5610a8f20bae162a879cbba94d08c722d5359b4c 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().styleResolver()->fontSelector();
+ return m_textField->document().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().styleResolver()->fontSelector());
+ regularFont.update(textField->document().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,
« Source/core/dom/StyleEngine.cpp ('K') | « Source/core/rendering/svg/RenderSVGInlineText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698