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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 | 310 |
311 inline PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPropertyParser::createPrimit
iveCustomIdentValue(CSSParserValue* value) | 311 inline PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPropertyParser::createPrimit
iveCustomIdentValue(CSSParserValue* value) |
312 { | 312 { |
313 ASSERT(value->unit() == CSSPrimitiveValue::UnitType::String || value->m_unit
== CSSParserValue::Identifier); | 313 ASSERT(value->unit() == CSSPrimitiveValue::UnitType::String || value->m_unit
== CSSParserValue::Identifier); |
314 return cssValuePool().createValue(value->string, CSSPrimitiveValue::UnitType
::CustomIdentifier); | 314 return cssValuePool().createValue(value->string, CSSPrimitiveValue::UnitType
::CustomIdentifier); |
315 } | 315 } |
316 | 316 |
317 inline PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::createCSSImageValueWi
thReferrer(const String& rawValue, const KURL& url) | 317 inline PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::createCSSImageValueWi
thReferrer(const String& rawValue, const KURL& url) |
318 { | 318 { |
319 RefPtrWillBeRawPtr<CSSValue> imageValue = CSSImageValue::create(rawValue, ur
l); | 319 RefPtrWillBeRawPtr<CSSImageValue> imageValue = CSSImageValue::create(rawValu
e, url); |
320 toCSSImageValue(imageValue.get())->setReferrer(m_context.referrer()); | 320 imageValue->setReferrer(m_context.referrer()); |
321 return imageValue; | 321 return imageValue; |
322 } | 322 } |
323 | 323 |
324 static inline bool isComma(CSSParserValue* value) | 324 static inline bool isComma(CSSParserValue* value) |
325 { | 325 { |
326 ASSERT(value); | 326 ASSERT(value); |
327 return value->m_unit == CSSParserValue::Operator && value->iValue == ','; | 327 return value->m_unit == CSSParserValue::Operator && value->iValue == ','; |
328 } | 328 } |
329 | 329 |
330 static bool consumeComma(CSSParserValueList* valueList) | 330 static bool consumeComma(CSSParserValueList* valueList) |
(...skipping 7763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8094 } | 8094 } |
8095 } | 8095 } |
8096 | 8096 |
8097 if (!list->length()) | 8097 if (!list->length()) |
8098 return nullptr; | 8098 return nullptr; |
8099 | 8099 |
8100 return list.release(); | 8100 return list.release(); |
8101 } | 8101 } |
8102 | 8102 |
8103 } // namespace blink | 8103 } // namespace blink |
OLD | NEW |