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

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

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update the test Created 3 years, 6 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. 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 3640 matching lines...) Expand 10 before | Expand all | Expand 10 after
3651 return CSSIdentifierValue::Create(style.GetScrollSnapType()); 3651 return CSSIdentifierValue::Create(style.GetScrollSnapType());
3652 case CSSPropertyScrollSnapPointsX: 3652 case CSSPropertyScrollSnapPointsX:
3653 return ValueForScrollSnapPoints(style.ScrollSnapPointsX(), style); 3653 return ValueForScrollSnapPoints(style.ScrollSnapPointsX(), style);
3654 case CSSPropertyScrollSnapPointsY: 3654 case CSSPropertyScrollSnapPointsY:
3655 return ValueForScrollSnapPoints(style.ScrollSnapPointsY(), style); 3655 return ValueForScrollSnapPoints(style.ScrollSnapPointsY(), style);
3656 case CSSPropertyScrollSnapCoordinate: 3656 case CSSPropertyScrollSnapCoordinate:
3657 return ValueForScrollSnapCoordinate(style.ScrollSnapCoordinate(), style); 3657 return ValueForScrollSnapCoordinate(style.ScrollSnapCoordinate(), style);
3658 case CSSPropertyScrollSnapDestination: 3658 case CSSPropertyScrollSnapDestination:
3659 return ValueForScrollSnapDestination(style.ScrollSnapDestination(), 3659 return ValueForScrollSnapDestination(style.ScrollSnapDestination(),
3660 style); 3660 style);
3661 case CSSPropertyScrollBoundaryBehavior:
3662 if (style.ScrollBoundaryBehaviorX() == style.ScrollBoundaryBehaviorY())
3663 return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorX());
3664 return nullptr;
3665 case CSSPropertyScrollBoundaryBehaviorX:
3666 return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorX());
3667 case CSSPropertyScrollBoundaryBehaviorY:
3668 return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorY());
3661 case CSSPropertyTranslate: { 3669 case CSSPropertyTranslate: {
3662 if (!style.Translate()) 3670 if (!style.Translate())
3663 return CSSIdentifierValue::Create(CSSValueNone); 3671 return CSSIdentifierValue::Create(CSSValueNone);
3664 3672
3665 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); 3673 CSSValueList* list = CSSValueList::CreateSpaceSeparated();
3666 if (layout_object && layout_object->IsBox()) { 3674 if (layout_object && layout_object->IsBox()) {
3667 LayoutRect box = ToLayoutBox(layout_object)->BorderBoxRect(); 3675 LayoutRect box = ToLayoutBox(layout_object)->BorderBoxRect();
3668 list->Append(*ZoomAdjustedPixelValue( 3676 list->Append(*ZoomAdjustedPixelValue(
3669 FloatValueForLength(style.Translate()->X(), box.Width().ToFloat()), 3677 FloatValueForLength(style.Translate()->X(), box.Width().ToFloat()),
3670 style)); 3678 style));
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
3750 case CSSPropertyAll: 3758 case CSSPropertyAll:
3751 return nullptr; 3759 return nullptr;
3752 default: 3760 default:
3753 break; 3761 break;
3754 } 3762 }
3755 NOTREACHED(); 3763 NOTREACHED();
3756 return nullptr; 3764 return nullptr;
3757 } 3765 }
3758 3766
3759 } // namespace blink 3767 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698