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

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

Issue 2246293003: Unprefix CSS user-select property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 4 months 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. 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 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 list->append(*zoomAdjustedPixelValueForLength(style.perspectiveOrigi nY(), style)); 2540 list->append(*zoomAdjustedPixelValueForLength(style.perspectiveOrigi nY(), style));
2541 } 2541 }
2542 return list; 2542 return list;
2543 } 2543 }
2544 case CSSPropertyWebkitRtlOrdering: 2544 case CSSPropertyWebkitRtlOrdering:
2545 return CSSPrimitiveValue::createIdentifier(style.rtlOrdering() ? CSSValu eVisual : CSSValueLogical); 2545 return CSSPrimitiveValue::createIdentifier(style.rtlOrdering() ? CSSValu eVisual : CSSValueLogical);
2546 case CSSPropertyWebkitTapHighlightColor: 2546 case CSSPropertyWebkitTapHighlightColor:
2547 return currentColorOrValidColor(style, style.tapHighlightColor()); 2547 return currentColorOrValidColor(style, style.tapHighlightColor());
2548 case CSSPropertyWebkitUserDrag: 2548 case CSSPropertyWebkitUserDrag:
2549 return CSSPrimitiveValue::create(style.userDrag()); 2549 return CSSPrimitiveValue::create(style.userDrag());
2550 case CSSPropertyWebkitUserSelect: 2550 case CSSPropertyUserSelect:
2551 return CSSPrimitiveValue::create(style.userSelect()); 2551 return CSSPrimitiveValue::create(style.userSelect());
2552 case CSSPropertyBorderBottomLeftRadius: 2552 case CSSPropertyBorderBottomLeftRadius:
2553 return &valueForBorderRadiusCorner(style.borderBottomLeftRadius(), style ); 2553 return &valueForBorderRadiusCorner(style.borderBottomLeftRadius(), style );
2554 case CSSPropertyBorderBottomRightRadius: 2554 case CSSPropertyBorderBottomRightRadius:
2555 return &valueForBorderRadiusCorner(style.borderBottomRightRadius(), styl e); 2555 return &valueForBorderRadiusCorner(style.borderBottomRightRadius(), styl e);
2556 case CSSPropertyBorderTopLeftRadius: 2556 case CSSPropertyBorderTopLeftRadius:
2557 return &valueForBorderRadiusCorner(style.borderTopLeftRadius(), style); 2557 return &valueForBorderRadiusCorner(style.borderTopLeftRadius(), style);
2558 case CSSPropertyBorderTopRightRadius: 2558 case CSSPropertyBorderTopRightRadius:
2559 return &valueForBorderRadiusCorner(style.borderTopRightRadius(), style); 2559 return &valueForBorderRadiusCorner(style.borderTopRightRadius(), style);
2560 case CSSPropertyClip: { 2560 case CSSPropertyClip: {
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
3021 case CSSPropertyAll: 3021 case CSSPropertyAll:
3022 return nullptr; 3022 return nullptr;
3023 default: 3023 default:
3024 break; 3024 break;
3025 } 3025 }
3026 ASSERT_NOT_REACHED(); 3026 ASSERT_NOT_REACHED();
3027 return nullptr; 3027 return nullptr;
3028 } 3028 }
3029 3029
3030 } // namespace blink 3030 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698