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

Unified Diff: third_party/WebKit/Source/core/css/MediaValues.cpp

Issue 2709263003: Removed FrameHost::settings() (Closed)
Patch Set: Switched if statement to use page Created 3 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/MediaValues.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaValues.cpp b/third_party/WebKit/Source/core/css/MediaValues.cpp
index 5ac7d79dd15ab58142089660a983b56a99f56557..4b00df2f27a5cd6227b87a87ee0f21288e974d02 100644
--- a/third_party/WebKit/Source/core/css/MediaValues.cpp
+++ b/third_party/WebKit/Source/core/css/MediaValues.cpp
@@ -89,7 +89,7 @@ int MediaValues::calculateMonochromeBitsPerComponent(LocalFrame* frame) {
}
int MediaValues::calculateDefaultFontSize(LocalFrame* frame) {
- return frame->host()->settings().getDefaultFontSize();
+ return frame->page()->settings().getDefaultFontSize();
}
const String MediaValues::calculateMediaType(LocalFrame* frame) {
@@ -101,7 +101,7 @@ const String MediaValues::calculateMediaType(LocalFrame* frame) {
WebDisplayMode MediaValues::calculateDisplayMode(LocalFrame* frame) {
ASSERT(frame);
- WebDisplayMode mode = frame->host()->settings().getDisplayModeOverride();
+ WebDisplayMode mode = frame->page()->settings().getDisplayModeOverride();
if (mode != WebDisplayModeUndefined)
return mode;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698