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

Unified Diff: sky/engine/core/css/MediaValues.cpp

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/CSSValueKeywords.in ('k') | sky/engine/core/css/parser/BisonCSSParser-in.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/MediaValues.cpp
diff --git a/sky/engine/core/css/MediaValues.cpp b/sky/engine/core/css/MediaValues.cpp
index d317b41cec4cdb4e0d8336675458b908adbdfa8c..c23debbf88008926c9e052c89a223c597d2c0081 100644
--- a/sky/engine/core/css/MediaValues.cpp
+++ b/sky/engine/core/css/MediaValues.cpp
@@ -33,13 +33,13 @@ PassRefPtr<MediaValues> MediaValues::createDynamicIfFrameExists(LocalFrame* fram
int MediaValues::calculateViewportWidth(LocalFrame* frame) const
{
ASSERT(frame && frame->view() && frame->document());
- return frame->view()->layoutSize(IncludeScrollbars).width();
+ return frame->view()->layoutSize().width();
}
int MediaValues::calculateViewportHeight(LocalFrame* frame) const
{
ASSERT(frame && frame->view() && frame->document());
- return frame->view()->layoutSize(IncludeScrollbars).height();
+ return frame->view()->layoutSize().height();
}
int MediaValues::calculateDeviceWidth(LocalFrame* frame) const
« no previous file with comments | « sky/engine/core/css/CSSValueKeywords.in ('k') | sky/engine/core/css/parser/BisonCSSParser-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698