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

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

Issue 15734030: Remove support for device-width|height for @viewport rule according to spec change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed comment Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | no next file » | 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 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.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return percentValue; 137 return percentValue;
138 default: 138 default:
139 ASSERT_NOT_REACHED(); 139 ASSERT_NOT_REACHED();
140 break; 140 break;
141 } 141 }
142 } 142 }
143 143
144 switch (primitiveValue->getValueID()) { 144 switch (primitiveValue->getValueID()) {
145 case CSSValueAuto: 145 case CSSValueAuto:
146 return defaultValue; 146 return defaultValue;
147 case CSSValueDeviceHeight:
148 return ViewportArguments::ValueDeviceHeight;
149 case CSSValueDeviceWidth:
150 return ViewportArguments::ValueDeviceWidth;
151 case CSSValueLandscape: 147 case CSSValueLandscape:
152 return ViewportArguments::ValueLandscape; 148 return ViewportArguments::ValueLandscape;
153 case CSSValuePortrait: 149 case CSSValuePortrait:
154 return ViewportArguments::ValuePortrait; 150 return ViewportArguments::ValuePortrait;
155 case CSSValueZoom: 151 case CSSValueZoom:
156 return defaultValue; 152 return defaultValue;
157 case CSSValueFixed: 153 case CSSValueFixed:
158 return 0; 154 return 0;
159 default: 155 default:
160 return defaultValue; 156 return defaultValue;
161 } 157 }
162 } 158 }
163 159
164 } // namespace WebCore 160 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698