| 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 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 list->Append(*CSSIdentifierValue::Create(CSSValueObjects)); | 1174 list->Append(*CSSIdentifierValue::Create(CSSValueObjects)); |
| 1175 if (text_decoration_skip & kTextDecorationSkipInk) | 1175 if (text_decoration_skip & kTextDecorationSkipInk) |
| 1176 list->Append(*CSSIdentifierValue::Create(CSSValueInk)); | 1176 list->Append(*CSSIdentifierValue::Create(CSSValueInk)); |
| 1177 | 1177 |
| 1178 DCHECK(list->length()); | 1178 DCHECK(list->length()); |
| 1179 return list; | 1179 return list; |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 static CSSValue* TouchActionFlagsToCSSValue(TouchAction touch_action) { | 1182 static CSSValue* TouchActionFlagsToCSSValue(TouchAction touch_action) { |
| 1183 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); | 1183 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); |
| 1184 if (touch_action == kTouchActionAuto) { | 1184 if (touch_action == TouchAction::kTouchActionAuto) { |
| 1185 list->Append(*CSSIdentifierValue::Create(CSSValueAuto)); | 1185 list->Append(*CSSIdentifierValue::Create(CSSValueAuto)); |
| 1186 } else if (touch_action == kTouchActionNone) { | 1186 } else if (touch_action == TouchAction::kTouchActionNone) { |
| 1187 list->Append(*CSSIdentifierValue::Create(CSSValueNone)); | 1187 list->Append(*CSSIdentifierValue::Create(CSSValueNone)); |
| 1188 } else if (touch_action == kTouchActionManipulation) { | 1188 } else if (touch_action == TouchAction::kTouchActionManipulation) { |
| 1189 list->Append(*CSSIdentifierValue::Create(CSSValueManipulation)); | 1189 list->Append(*CSSIdentifierValue::Create(CSSValueManipulation)); |
| 1190 } else { | 1190 } else { |
| 1191 if ((touch_action & kTouchActionPanX) == kTouchActionPanX) | 1191 if ((touch_action & TouchAction::kTouchActionPanX) == |
| 1192 TouchAction::kTouchActionPanX) |
| 1192 list->Append(*CSSIdentifierValue::Create(CSSValuePanX)); | 1193 list->Append(*CSSIdentifierValue::Create(CSSValuePanX)); |
| 1193 else if (touch_action & kTouchActionPanLeft) | 1194 else if (touch_action & TouchAction::kTouchActionPanLeft) |
| 1194 list->Append(*CSSIdentifierValue::Create(CSSValuePanLeft)); | 1195 list->Append(*CSSIdentifierValue::Create(CSSValuePanLeft)); |
| 1195 else if (touch_action & kTouchActionPanRight) | 1196 else if (touch_action & TouchAction::kTouchActionPanRight) |
| 1196 list->Append(*CSSIdentifierValue::Create(CSSValuePanRight)); | 1197 list->Append(*CSSIdentifierValue::Create(CSSValuePanRight)); |
| 1197 if ((touch_action & kTouchActionPanY) == kTouchActionPanY) | 1198 if ((touch_action & TouchAction::kTouchActionPanY) == |
| 1199 TouchAction::kTouchActionPanY) |
| 1198 list->Append(*CSSIdentifierValue::Create(CSSValuePanY)); | 1200 list->Append(*CSSIdentifierValue::Create(CSSValuePanY)); |
| 1199 else if (touch_action & kTouchActionPanUp) | 1201 else if (touch_action & TouchAction::kTouchActionPanUp) |
| 1200 list->Append(*CSSIdentifierValue::Create(CSSValuePanUp)); | 1202 list->Append(*CSSIdentifierValue::Create(CSSValuePanUp)); |
| 1201 else if (touch_action & kTouchActionPanDown) | 1203 else if (touch_action & TouchAction::kTouchActionPanDown) |
| 1202 list->Append(*CSSIdentifierValue::Create(CSSValuePanDown)); | 1204 list->Append(*CSSIdentifierValue::Create(CSSValuePanDown)); |
| 1203 | 1205 |
| 1204 if ((touch_action & kTouchActionPinchZoom) == kTouchActionPinchZoom) | 1206 if ((touch_action & TouchAction::kTouchActionPinchZoom) == |
| 1207 TouchAction::kTouchActionPinchZoom) |
| 1205 list->Append(*CSSIdentifierValue::Create(CSSValuePinchZoom)); | 1208 list->Append(*CSSIdentifierValue::Create(CSSValuePinchZoom)); |
| 1206 } | 1209 } |
| 1207 | 1210 |
| 1208 DCHECK(list->length()); | 1211 DCHECK(list->length()); |
| 1209 return list; | 1212 return list; |
| 1210 } | 1213 } |
| 1211 | 1214 |
| 1212 static CSSValue* ValueForWillChange( | 1215 static CSSValue* ValueForWillChange( |
| 1213 const Vector<CSSPropertyID>& will_change_properties, | 1216 const Vector<CSSPropertyID>& will_change_properties, |
| 1214 bool will_change_contents, | 1217 bool will_change_contents, |
| (...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3745 case CSSPropertyAll: | 3748 case CSSPropertyAll: |
| 3746 return nullptr; | 3749 return nullptr; |
| 3747 default: | 3750 default: |
| 3748 break; | 3751 break; |
| 3749 } | 3752 } |
| 3750 NOTREACHED(); | 3753 NOTREACHED(); |
| 3751 return nullptr; | 3754 return nullptr; |
| 3752 } | 3755 } |
| 3753 | 3756 |
| 3754 } // namespace blink | 3757 } // namespace blink |
| OLD | NEW |