OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
10 * | 10 * |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 368 |
369 bool CSSPropertyParser::validWidthOrHeight(CSSParserValue* value, Units unitless
) | 369 bool CSSPropertyParser::validWidthOrHeight(CSSParserValue* value, Units unitless
) |
370 { | 370 { |
371 int id = value->id; | 371 int id = value->id; |
372 if (id == CSSValueIntrinsic || id == CSSValueMinIntrinsic | 372 if (id == CSSValueIntrinsic || id == CSSValueMinIntrinsic |
373 || id == CSSValueWebkitMinContent || id == CSSValueWebkitMaxContent || i
d == CSSValueWebkitFillAvailable || id == CSSValueWebkitFitContent | 373 || id == CSSValueWebkitMinContent || id == CSSValueWebkitMaxContent || i
d == CSSValueWebkitFillAvailable || id == CSSValueWebkitFitContent |
374 || id == CSSValueMinContent || id == CSSValueMaxContent || id == CSSValu
eFitContent) { | 374 || id == CSSValueMinContent || id == CSSValueMaxContent || id == CSSValu
eFitContent) { |
375 if (m_context.useCounter()) { | 375 if (m_context.useCounter()) { |
376 switch (value->id) { | 376 switch (value->id) { |
377 case CSSValueIntrinsic: | 377 case CSSValueIntrinsic: |
378 m_context.useCounter()->count(UseCounter::LegacyCSSValueIntrinsi
c); | 378 UseCounter::countDeprecation(m_context.frame(), UseCounter::Lega
cyCSSValueIntrinsic); |
379 break; | 379 break; |
380 case CSSValueMinIntrinsic: | 380 case CSSValueMinIntrinsic: |
381 m_context.useCounter()->count(UseCounter::LegacyCSSValueMinIntri
nsic); | 381 UseCounter::countDeprecation(m_context.frame(), UseCounter::Lega
cyCSSValueMinIntrinsic); |
382 break; | 382 break; |
383 case CSSValueWebkitMinContent: | 383 case CSSValueWebkitMinContent: |
384 m_context.useCounter()->count(UseCounter::CSSValuePrefixedMinCon
tent); | 384 m_context.useCounter()->count(UseCounter::CSSValuePrefixedMinCon
tent); |
385 break; | 385 break; |
386 case CSSValueWebkitMaxContent: | 386 case CSSValueWebkitMaxContent: |
387 m_context.useCounter()->count(UseCounter::CSSValuePrefixedMaxCon
tent); | 387 m_context.useCounter()->count(UseCounter::CSSValuePrefixedMaxCon
tent); |
388 break; | 388 break; |
389 case CSSValueWebkitFillAvailable: | 389 case CSSValueWebkitFillAvailable: |
390 m_context.useCounter()->count(UseCounter::CSSValuePrefixedFillAv
ailable); | 390 m_context.useCounter()->count(UseCounter::CSSValuePrefixedFillAv
ailable); |
391 break; | 391 break; |
(...skipping 7717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8109 } | 8109 } |
8110 } | 8110 } |
8111 | 8111 |
8112 if (!list->length()) | 8112 if (!list->length()) |
8113 return nullptr; | 8113 return nullptr; |
8114 | 8114 |
8115 return list.release(); | 8115 return list.release(); |
8116 } | 8116 } |
8117 | 8117 |
8118 } // namespace blink | 8118 } // namespace blink |
OLD | NEW |