| 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. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 8 * Copyright (C) 2015 Google Inc. All rights reserved. | 8 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 return CSSIdentifierValue::Create(CSSValueWavy); | 1167 return CSSIdentifierValue::Create(CSSValueWavy); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 NOTREACHED(); | 1170 NOTREACHED(); |
| 1171 return CSSInitialValue::Create(); | 1171 return CSSInitialValue::Create(); |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 static CSSValue* ValueForTextDecorationSkip( | 1174 static CSSValue* ValueForTextDecorationSkip( |
| 1175 TextDecorationSkip text_decoration_skip) { | 1175 TextDecorationSkip text_decoration_skip) { |
| 1176 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); | 1176 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); |
| 1177 if (text_decoration_skip & kTextDecorationSkipObjects) | 1177 if (EnumHasFlags(text_decoration_skip, TextDecorationSkip::kObjects)) |
| 1178 list->Append(*CSSIdentifierValue::Create(CSSValueObjects)); | 1178 list->Append(*CSSIdentifierValue::Create(CSSValueObjects)); |
| 1179 if (text_decoration_skip & kTextDecorationSkipInk) | 1179 if (EnumHasFlags(text_decoration_skip, TextDecorationSkip::kInk)) |
| 1180 list->Append(*CSSIdentifierValue::Create(CSSValueInk)); | 1180 list->Append(*CSSIdentifierValue::Create(CSSValueInk)); |
| 1181 | 1181 |
| 1182 DCHECK(list->length()); | 1182 DCHECK(list->length()); |
| 1183 return list; | 1183 return list; |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 static CSSValue* TouchActionFlagsToCSSValue(TouchAction touch_action) { | 1186 static CSSValue* TouchActionFlagsToCSSValue(TouchAction touch_action) { |
| 1187 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); | 1187 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); |
| 1188 if (touch_action == TouchAction::kTouchActionAuto) { | 1188 if (touch_action == TouchAction::kTouchActionAuto) { |
| 1189 list->Append(*CSSIdentifierValue::Create(CSSValueAuto)); | 1189 list->Append(*CSSIdentifierValue::Create(CSSValueAuto)); |
| (...skipping 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3753 case CSSPropertyAll: | 3753 case CSSPropertyAll: |
| 3754 return nullptr; | 3754 return nullptr; |
| 3755 default: | 3755 default: |
| 3756 break; | 3756 break; |
| 3757 } | 3757 } |
| 3758 NOTREACHED(); | 3758 NOTREACHED(); |
| 3759 return nullptr; | 3759 return nullptr; |
| 3760 } | 3760 } |
| 3761 | 3761 |
| 3762 } // namespace blink | 3762 } // namespace blink |
| OLD | NEW |