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

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

Powered by Google App Engine
This is Rietveld 408576698