OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
7 * Copyright (C) 2015 Google Inc. All rights reserved. | 7 * Copyright (C) 2015 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 2700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2711 list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimi
tiveValue::UnitType::Number)); | 2711 list->append(cssValuePool().createValue(style.scale()->z(), CSSPrimi
tiveValue::UnitType::Number)); |
2712 return list.release(); | 2712 return list.release(); |
2713 } | 2713 } |
2714 case CSSPropertyContain: { | 2714 case CSSPropertyContain: { |
2715 if (!style.contain()) | 2715 if (!style.contain()) |
2716 return cssValuePool().createIdentifierValue(CSSValueNone); | 2716 return cssValuePool().createIdentifierValue(CSSValueNone); |
2717 if (style.contain() == ContainsStrict) | 2717 if (style.contain() == ContainsStrict) |
2718 return cssValuePool().createIdentifierValue(CSSValueStrict); | 2718 return cssValuePool().createIdentifierValue(CSSValueStrict); |
2719 | 2719 |
2720 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat
ed(); | 2720 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparat
ed(); |
2721 if (style.contain() & ContainsStyle) | 2721 if (style.containsStyle()) |
2722 list->append(cssValuePool().createIdentifierValue(CSSValueStyle)); | 2722 list->append(cssValuePool().createIdentifierValue(CSSValueStyle)); |
2723 if (style.contain() & ContainsLayout) | 2723 if (style.contain() & ContainsLayout) |
2724 list->append(cssValuePool().createIdentifierValue(CSSValueLayout)); | 2724 list->append(cssValuePool().createIdentifierValue(CSSValueLayout)); |
2725 if (style.containsPaint()) | 2725 if (style.containsPaint()) |
2726 list->append(cssValuePool().createIdentifierValue(CSSValuePaint)); | 2726 list->append(cssValuePool().createIdentifierValue(CSSValuePaint)); |
2727 ASSERT(list->length()); | 2727 ASSERT(list->length()); |
2728 return list.release(); | 2728 return list.release(); |
2729 } | 2729 } |
2730 case CSSPropertyVariable: | 2730 case CSSPropertyVariable: |
2731 // Variables are retrieved via get(AtomicString). | 2731 // Variables are retrieved via get(AtomicString). |
2732 ASSERT_NOT_REACHED(); | 2732 ASSERT_NOT_REACHED(); |
2733 return nullptr; | 2733 return nullptr; |
2734 case CSSPropertyAll: | 2734 case CSSPropertyAll: |
2735 return nullptr; | 2735 return nullptr; |
2736 default: | 2736 default: |
2737 break; | 2737 break; |
2738 } | 2738 } |
2739 ASSERT_NOT_REACHED(); | 2739 ASSERT_NOT_REACHED(); |
2740 return nullptr; | 2740 return nullptr; |
2741 } | 2741 } |
2742 | 2742 |
2743 } // namespace blink | 2743 } // namespace blink |
OLD | NEW |