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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 | 435 |
436 RefPtrWillBeRawPtr<CSSValue> value = prpValue; | 436 RefPtrWillBeRawPtr<CSSValue> value = prpValue; |
437 ShorthandScope scope(this, propId); | 437 ShorthandScope scope(this, propId); |
438 const CSSPropertyID* longhands = shorthand.properties(); | 438 const CSSPropertyID* longhands = shorthand.properties(); |
439 for (unsigned i = 0; i < shorthandLength; ++i) | 439 for (unsigned i = 0; i < shorthandLength; ++i) |
440 addPropertyWithPrefixingVariant(longhands[i], value, important); | 440 addPropertyWithPrefixingVariant(longhands[i], value, important); |
441 } | 441 } |
442 | 442 |
443 bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important) | 443 bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important) |
444 { | 444 { |
445 if (!isInternalPropertyAndValueParsingEnabledForMode(m_context.mode()) && is
InternalProperty(propId)) | |
446 return false; | |
447 | |
448 if (!m_valueList) | 445 if (!m_valueList) |
449 return false; | 446 return false; |
450 | 447 |
451 CSSParserValue* value = m_valueList->current(); | 448 CSSParserValue* value = m_valueList->current(); |
452 | 449 |
453 if (!value) | 450 if (!value) |
454 return false; | 451 return false; |
455 | 452 |
456 if (inViewport()) { | 453 if (inViewport()) { |
457 // Allow @viewport rules from UA stylesheets even if the feature is disa
bled. | 454 // Allow @viewport rules from UA stylesheets even if the feature is disa
bled. |
(...skipping 8120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8578 } | 8575 } |
8579 } | 8576 } |
8580 | 8577 |
8581 if (!list->length()) | 8578 if (!list->length()) |
8582 return nullptr; | 8579 return nullptr; |
8583 | 8580 |
8584 return list.release(); | 8581 return list.release(); |
8585 } | 8582 } |
8586 | 8583 |
8587 } // namespace blink | 8584 } // namespace blink |
OLD | NEW |