| 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 7523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7534 unsigned length = string.length(); | 7534 unsigned length = string.length(); |
| 7535 | 7535 |
| 7536 if (!length) | 7536 if (!length) |
| 7537 return CSSPropertyInvalid; | 7537 return CSSPropertyInvalid; |
| 7538 if (length > maxCSSPropertyNameLength) | 7538 if (length > maxCSSPropertyNameLength) |
| 7539 return CSSPropertyInvalid; | 7539 return CSSPropertyInvalid; |
| 7540 | 7540 |
| 7541 return string.is8Bit() ? unresolvedCSSPropertyID(string.characters8(), lengt
h) : unresolvedCSSPropertyID(string.characters16(), length); | 7541 return string.is8Bit() ? unresolvedCSSPropertyID(string.characters8(), lengt
h) : unresolvedCSSPropertyID(string.characters16(), length); |
| 7542 } | 7542 } |
| 7543 | 7543 |
| 7544 CSSPropertyID cssPropertyID(const String& string) | |
| 7545 { | |
| 7546 return resolveCSSPropertyID(unresolvedCSSPropertyID(string)); | |
| 7547 } | |
| 7548 | |
| 7549 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString& string) | 7544 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString& string) |
| 7550 { | 7545 { |
| 7551 unsigned length = string.length(); | 7546 unsigned length = string.length(); |
| 7552 | 7547 |
| 7553 if (!length) | 7548 if (!length) |
| 7554 return CSSPropertyInvalid; | 7549 return CSSPropertyInvalid; |
| 7555 if (length > maxCSSPropertyNameLength) | 7550 if (length > maxCSSPropertyNameLength) |
| 7556 return CSSPropertyInvalid; | 7551 return CSSPropertyInvalid; |
| 7557 | 7552 |
| 7558 return string.is8Bit() ? unresolvedCSSPropertyID(string.characters8(), lengt
h) : unresolvedCSSPropertyID(string.characters16(), length); | 7553 return string.is8Bit() ? unresolvedCSSPropertyID(string.characters8(), lengt
h) : unresolvedCSSPropertyID(string.characters16(), length); |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8179 } | 8174 } |
| 8180 } | 8175 } |
| 8181 | 8176 |
| 8182 if (!list->length()) | 8177 if (!list->length()) |
| 8183 return nullptr; | 8178 return nullptr; |
| 8184 | 8179 |
| 8185 return list.release(); | 8180 return list.release(); |
| 8186 } | 8181 } |
| 8187 | 8182 |
| 8188 } // namespace blink | 8183 } // namespace blink |
| OLD | NEW |