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

Side by Side Diff: Source/core/css/resolver/ViewportStyleResolver.cpp

Issue 19632002: Support 'extend-to-zoom' viewport descriptor value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed isExtendToZoom() Created 7 years, 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/LengthFunctions.cpp ('k') | Source/core/dom/ViewportArguments.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Intel Corporation. All rights reserved. 2 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
11 * 2. Redistributions in binary form must reproduce the above 11 * 2. Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following 12 * copyright notice, this list of conditions and the following
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 switch (primitiveValue->getValueID()) { 140 switch (primitiveValue->getValueID()) {
141 case CSSValueAuto: 141 case CSSValueAuto:
142 return defaultValue; 142 return defaultValue;
143 case CSSValueLandscape: 143 case CSSValueLandscape:
144 return ViewportArguments::ValueLandscape; 144 return ViewportArguments::ValueLandscape;
145 case CSSValuePortrait: 145 case CSSValuePortrait:
146 return ViewportArguments::ValuePortrait; 146 return ViewportArguments::ValuePortrait;
147 case CSSValueZoom: 147 case CSSValueZoom:
148 return defaultValue; 148 return defaultValue;
149 case CSSValueInternalExtendToZoom:
150 return ViewportArguments::ValueExtendToZoom;
149 case CSSValueFixed: 151 case CSSValueFixed:
150 return 0; 152 return 0;
151 default: 153 default:
152 return defaultValue; 154 return defaultValue;
153 } 155 }
154 } 156 }
155 157
156 } // namespace WebCore 158 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/LengthFunctions.cpp ('k') | Source/core/dom/ViewportArguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698