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 3516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3527 property == CSSPropertyCounterIncrement ? 1 : 0); | 3527 property == CSSPropertyCounterIncrement ? 1 : 0); |
3528 case CSSPropertySize: | 3528 case CSSPropertySize: |
3529 return consumeSize(m_range, m_context.mode()); | 3529 return consumeSize(m_range, m_context.mode()); |
3530 case CSSPropertySnapHeight: | 3530 case CSSPropertySnapHeight: |
3531 return consumeSnapHeight(m_range, m_context.mode()); | 3531 return consumeSnapHeight(m_range, m_context.mode()); |
3532 case CSSPropertyTextIndent: | 3532 case CSSPropertyTextIndent: |
3533 return consumeTextIndent(m_range, m_context.mode()); | 3533 return consumeTextIndent(m_range, m_context.mode()); |
3534 case CSSPropertyMaxWidth: | 3534 case CSSPropertyMaxWidth: |
3535 case CSSPropertyMaxHeight: | 3535 case CSSPropertyMaxHeight: |
3536 return consumeMaxWidthOrHeight(m_range, m_context, UnitlessQuirk::Allow); | 3536 return consumeMaxWidthOrHeight(m_range, m_context, UnitlessQuirk::Allow); |
| 3537 case CSSPropertyMaxInlineSize: |
| 3538 case CSSPropertyMaxBlockSize: |
3537 case CSSPropertyWebkitMaxLogicalWidth: | 3539 case CSSPropertyWebkitMaxLogicalWidth: |
3538 case CSSPropertyWebkitMaxLogicalHeight: | 3540 case CSSPropertyWebkitMaxLogicalHeight: |
3539 return consumeMaxWidthOrHeight(m_range, m_context); | 3541 return consumeMaxWidthOrHeight(m_range, m_context); |
3540 case CSSPropertyMinWidth: | 3542 case CSSPropertyMinWidth: |
3541 case CSSPropertyMinHeight: | 3543 case CSSPropertyMinHeight: |
3542 case CSSPropertyWidth: | 3544 case CSSPropertyWidth: |
3543 case CSSPropertyHeight: | 3545 case CSSPropertyHeight: |
3544 return consumeWidthOrHeight(m_range, m_context, UnitlessQuirk::Allow); | 3546 return consumeWidthOrHeight(m_range, m_context, UnitlessQuirk::Allow); |
| 3547 case CSSPropertyInlineSize: |
| 3548 case CSSPropertyBlockSize: |
| 3549 case CSSPropertyMinInlineSize: |
| 3550 case CSSPropertyMinBlockSize: |
3545 case CSSPropertyWebkitMinLogicalWidth: | 3551 case CSSPropertyWebkitMinLogicalWidth: |
3546 case CSSPropertyWebkitMinLogicalHeight: | 3552 case CSSPropertyWebkitMinLogicalHeight: |
3547 case CSSPropertyWebkitLogicalWidth: | 3553 case CSSPropertyWebkitLogicalWidth: |
3548 case CSSPropertyWebkitLogicalHeight: | 3554 case CSSPropertyWebkitLogicalHeight: |
3549 return consumeWidthOrHeight(m_range, m_context); | 3555 return consumeWidthOrHeight(m_range, m_context); |
3550 case CSSPropertyMarginTop: | 3556 case CSSPropertyMarginTop: |
3551 case CSSPropertyMarginRight: | 3557 case CSSPropertyMarginRight: |
3552 case CSSPropertyMarginBottom: | 3558 case CSSPropertyMarginBottom: |
3553 case CSSPropertyMarginLeft: | 3559 case CSSPropertyMarginLeft: |
3554 case CSSPropertyBottom: | 3560 case CSSPropertyBottom: |
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5377 case CSSPropertyGridTemplate: | 5383 case CSSPropertyGridTemplate: |
5378 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); | 5384 return consumeGridTemplateShorthand(CSSPropertyGridTemplate, important); |
5379 case CSSPropertyGrid: | 5385 case CSSPropertyGrid: |
5380 return consumeGridShorthand(important); | 5386 return consumeGridShorthand(important); |
5381 default: | 5387 default: |
5382 return false; | 5388 return false; |
5383 } | 5389 } |
5384 } | 5390 } |
5385 | 5391 |
5386 } // namespace blink | 5392 } // namespace blink |
OLD | NEW |