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

Side by Side Diff: sky/engine/core/css/CSSPrimitiveValue.h

Issue 711203002: Remove zoom() and effectiveZoom(). (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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/css/CSSMatrix.cpp ('k') | sky/engine/core/css/CSSPrimitiveValue.cpp » ('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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 return adoptRef(new CSSPrimitiveValue(rgbValue, CSS_RGBCOLOR)); 220 return adoptRef(new CSSPrimitiveValue(rgbValue, CSS_RGBCOLOR));
221 } 221 }
222 static PassRefPtr<CSSPrimitiveValue> create(double value, UnitType type) 222 static PassRefPtr<CSSPrimitiveValue> create(double value, UnitType type)
223 { 223 {
224 return adoptRef(new CSSPrimitiveValue(value, type)); 224 return adoptRef(new CSSPrimitiveValue(value, type));
225 } 225 }
226 static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitType ty pe) 226 static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitType ty pe)
227 { 227 {
228 return adoptRef(new CSSPrimitiveValue(value, type)); 228 return adoptRef(new CSSPrimitiveValue(value, type));
229 } 229 }
230 static PassRefPtr<CSSPrimitiveValue> create(const Length& value, float zoom) 230 static PassRefPtr<CSSPrimitiveValue> create(const Length& value)
231 { 231 {
232 return adoptRef(new CSSPrimitiveValue(value, zoom)); 232 return adoptRef(new CSSPrimitiveValue(value));
233 } 233 }
234 static PassRefPtr<CSSPrimitiveValue> create(const LengthSize& value, const R enderStyle& style) 234 static PassRefPtr<CSSPrimitiveValue> create(const LengthSize& value, const R enderStyle& style)
235 { 235 {
236 return adoptRef(new CSSPrimitiveValue(value, style)); 236 return adoptRef(new CSSPrimitiveValue(value, style));
237 } 237 }
238 template<typename T> static PassRefPtr<CSSPrimitiveValue> create(T value) 238 template<typename T> static PassRefPtr<CSSPrimitiveValue> create(T value)
239 { 239 {
240 return adoptRef(new CSSPrimitiveValue(value)); 240 return adoptRef(new CSSPrimitiveValue(value));
241 } 241 }
242 242
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false. 335 // Returns true and populates lengthUnitType, if unitType is a length unit. Otherwise, returns false.
336 static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&); 336 static bool unitTypeToLengthUnitType(UnitType, LengthUnitType&);
337 static UnitType lengthUnitTypeToUnitType(LengthUnitType); 337 static UnitType lengthUnitTypeToUnitType(LengthUnitType);
338 338
339 private: 339 private:
340 CSSPrimitiveValue(CSSValueID); 340 CSSPrimitiveValue(CSSValueID);
341 CSSPrimitiveValue(CSSPropertyID); 341 CSSPrimitiveValue(CSSPropertyID);
342 // int vs. unsigned is too subtle to distinguish types, so require a UnitTyp e. 342 // int vs. unsigned is too subtle to distinguish types, so require a UnitTyp e.
343 CSSPrimitiveValue(int parserOperator, UnitType); 343 CSSPrimitiveValue(int parserOperator, UnitType);
344 CSSPrimitiveValue(unsigned color, UnitType); // RGB value 344 CSSPrimitiveValue(unsigned color, UnitType); // RGB value
345 CSSPrimitiveValue(const Length&, float zoom); 345 CSSPrimitiveValue(const Length&);
346 CSSPrimitiveValue(const LengthSize&, const RenderStyle&); 346 CSSPrimitiveValue(const LengthSize&, const RenderStyle&);
347 CSSPrimitiveValue(const String&, UnitType); 347 CSSPrimitiveValue(const String&, UnitType);
348 CSSPrimitiveValue(double, UnitType); 348 CSSPrimitiveValue(double, UnitType);
349 349
350 template<typename T> CSSPrimitiveValue(T); // Defined in CSSPrimitiveValueMa ppings.h 350 template<typename T> CSSPrimitiveValue(T); // Defined in CSSPrimitiveValueMa ppings.h
351 template<typename T> CSSPrimitiveValue(T* val) 351 template<typename T> CSSPrimitiveValue(T* val)
352 : CSSValue(PrimitiveClass) 352 : CSSValue(PrimitiveClass)
353 { 353 {
354 init(PassRefPtr<T>(val)); 354 init(PassRefPtr<T>(val));
355 } 355 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } m_value; 391 } m_value;
392 }; 392 };
393 393
394 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; 394 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray;
395 395
396 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 396 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
397 397
398 } // namespace blink 398 } // namespace blink
399 399
400 #endif // CSSPrimitiveValue_h 400 #endif // CSSPrimitiveValue_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSMatrix.cpp ('k') | sky/engine/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698