Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2546333002: Changed Order to an enum class and renamed its members (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3034 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 style)); 3045 style));
3046 } else { 3046 } else {
3047 list->append(*zoomAdjustedPixelValueForLength( 3047 list->append(*zoomAdjustedPixelValueForLength(
3048 style.perspectiveOriginX(), style)); 3048 style.perspectiveOriginX(), style));
3049 list->append(*zoomAdjustedPixelValueForLength( 3049 list->append(*zoomAdjustedPixelValueForLength(
3050 style.perspectiveOriginY(), style)); 3050 style.perspectiveOriginY(), style));
3051 } 3051 }
3052 return list; 3052 return list;
3053 } 3053 }
3054 case CSSPropertyWebkitRtlOrdering: 3054 case CSSPropertyWebkitRtlOrdering:
3055 return CSSIdentifierValue::create(style.rtlOrdering() ? CSSValueVisual 3055 return CSSIdentifierValue::create(style.rtlOrdering() == EOrder::Visual
3056 : CSSValueLogical); 3056 ? CSSValueVisual
3057 : CSSValueLogical);
3057 case CSSPropertyWebkitTapHighlightColor: 3058 case CSSPropertyWebkitTapHighlightColor:
3058 return currentColorOrValidColor(style, style.tapHighlightColor()); 3059 return currentColorOrValidColor(style, style.tapHighlightColor());
3059 case CSSPropertyWebkitUserDrag: 3060 case CSSPropertyWebkitUserDrag:
3060 return CSSIdentifierValue::create(style.userDrag()); 3061 return CSSIdentifierValue::create(style.userDrag());
3061 case CSSPropertyUserSelect: 3062 case CSSPropertyUserSelect:
3062 return CSSIdentifierValue::create(style.userSelect()); 3063 return CSSIdentifierValue::create(style.userSelect());
3063 case CSSPropertyBorderBottomLeftRadius: 3064 case CSSPropertyBorderBottomLeftRadius:
3064 return &valueForBorderRadiusCorner(style.borderBottomLeftRadius(), style); 3065 return &valueForBorderRadiusCorner(style.borderBottomLeftRadius(), style);
3065 case CSSPropertyBorderBottomRightRadius: 3066 case CSSPropertyBorderBottomRightRadius:
3066 return &valueForBorderRadiusCorner(style.borderBottomRightRadius(), 3067 return &valueForBorderRadiusCorner(style.borderBottomRightRadius(),
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
3626 case CSSPropertyAll: 3627 case CSSPropertyAll:
3627 return nullptr; 3628 return nullptr;
3628 default: 3629 default:
3629 break; 3630 break;
3630 } 3631 }
3631 ASSERT_NOT_REACHED(); 3632 ASSERT_NOT_REACHED();
3632 return nullptr; 3633 return nullptr;
3633 } 3634 }
3634 3635
3635 } // namespace blink 3636 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698