OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/parser/CSSPropertyParser.h" | 5 #include "core/css/parser/CSSPropertyParser.h" |
6 | 6 |
7 #include "core/StylePropertyShorthand.h" | 7 #include "core/StylePropertyShorthand.h" |
8 #include "core/css/CSSBasicShapeValues.h" | 8 #include "core/css/CSSBasicShapeValues.h" |
9 #include "core/css/CSSBorderImage.h" | 9 #include "core/css/CSSBorderImage.h" |
10 #include "core/css/CSSContentDistributionValue.h" | 10 #include "core/css/CSSContentDistributionValue.h" |
(...skipping 3579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3590 case CSSPropertyWebkitBorderAfterColor: | 3590 case CSSPropertyWebkitBorderAfterColor: |
3591 case CSSPropertyWebkitTextStrokeColor: | 3591 case CSSPropertyWebkitTextStrokeColor: |
3592 case CSSPropertyStopColor: | 3592 case CSSPropertyStopColor: |
3593 case CSSPropertyFloodColor: | 3593 case CSSPropertyFloodColor: |
3594 case CSSPropertyLightingColor: | 3594 case CSSPropertyLightingColor: |
3595 case CSSPropertyColumnRuleColor: | 3595 case CSSPropertyColumnRuleColor: |
3596 return consumeColor(m_range, m_context.mode()); | 3596 return consumeColor(m_range, m_context.mode()); |
3597 case CSSPropertyColor: | 3597 case CSSPropertyColor: |
3598 case CSSPropertyBackgroundColor: | 3598 case CSSPropertyBackgroundColor: |
3599 return consumeColor(m_range, m_context.mode(), inQuirksMode()); | 3599 return consumeColor(m_range, m_context.mode(), inQuirksMode()); |
| 3600 case CSSPropertyCaretColor: |
| 3601 if (m_range.peek().id() == CSSValueAuto) |
| 3602 return consumeIdent(m_range); |
| 3603 return consumeColor(m_range, m_context.mode()); |
3600 case CSSPropertyWebkitBorderStartWidth: | 3604 case CSSPropertyWebkitBorderStartWidth: |
3601 case CSSPropertyWebkitBorderEndWidth: | 3605 case CSSPropertyWebkitBorderEndWidth: |
3602 case CSSPropertyWebkitBorderBeforeWidth: | 3606 case CSSPropertyWebkitBorderBeforeWidth: |
3603 case CSSPropertyWebkitBorderAfterWidth: | 3607 case CSSPropertyWebkitBorderAfterWidth: |
3604 return consumeBorderWidth(m_range, m_context.mode(), | 3608 return consumeBorderWidth(m_range, m_context.mode(), |
3605 UnitlessQuirk::Forbid); | 3609 UnitlessQuirk::Forbid); |
3606 case CSSPropertyBorderBottomColor: | 3610 case CSSPropertyBorderBottomColor: |
3607 case CSSPropertyBorderLeftColor: | 3611 case CSSPropertyBorderLeftColor: |
3608 case CSSPropertyBorderRightColor: | 3612 case CSSPropertyBorderRightColor: |
3609 case CSSPropertyBorderTopColor: { | 3613 case CSSPropertyBorderTopColor: { |
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5324 case CSSPropertyGridTemplate: | 5328 case CSSPropertyGridTemplate: |
5325 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); | 5329 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); |
5326 case CSSPropertyGrid: | 5330 case CSSPropertyGrid: |
5327 return consumeGridShorthand(important); | 5331 return consumeGridShorthand(important); |
5328 default: | 5332 default: |
5329 return false; | 5333 return false; |
5330 } | 5334 } |
5331 } | 5335 } |
5332 | 5336 |
5333 } // namespace blink | 5337 } // namespace blink |
OLD | NEW |