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

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

Issue 710113003: Initial step of removing CSS zoom related properties. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/parser/CSSPropertyParser.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 356fe8a1bff78bcdd528052152dd3b0868cb2965..be7c22f52b62c5fd97e8e1a507aa7f2ac5b68505 100644
--- a/sky/engine/core/css/MediaValues.cpp
+++ b/sky/engine/core/css/MediaValues.cpp
@@ -34,15 +34,13 @@ PassRefPtr<MediaValues> MediaValues::createDynamicIfFrameExists(LocalFrame* fram
int MediaValues::calculateViewportWidth(LocalFrame* frame) const
{
ASSERT(frame && frame->view() && frame->document());
- int viewportWidth = frame->view()->layoutSize(IncludeScrollbars).width();
- return adjustForAbsoluteZoom(viewportWidth, frame->document()->renderView());
+ return frame->view()->layoutSize(IncludeScrollbars).width();
}
int MediaValues::calculateViewportHeight(LocalFrame* frame) const
{
ASSERT(frame && frame->view() && frame->document());
- int viewportHeight = frame->view()->layoutSize(IncludeScrollbars).height();
- return adjustForAbsoluteZoom(viewportHeight, frame->document()->renderView());
+ return frame->view()->layoutSize(IncludeScrollbars).height();
}
int MediaValues::calculateDeviceWidth(LocalFrame* frame) const
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698