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 3747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3758 style); | 3758 style); |
3759 case CSSPropertyScrollSnapMarginBlockEnd: | 3759 case CSSPropertyScrollSnapMarginBlockEnd: |
3760 return ZoomAdjustedPixelValueForLength(style.ScrollSnapMarginBlockEnd(), | 3760 return ZoomAdjustedPixelValueForLength(style.ScrollSnapMarginBlockEnd(), |
3761 style); | 3761 style); |
3762 case CSSPropertyScrollSnapMarginInlineStart: | 3762 case CSSPropertyScrollSnapMarginInlineStart: |
3763 return ZoomAdjustedPixelValueForLength( | 3763 return ZoomAdjustedPixelValueForLength( |
3764 style.ScrollSnapMarginInlineStart(), style); | 3764 style.ScrollSnapMarginInlineStart(), style); |
3765 case CSSPropertyScrollSnapMarginInlineEnd: | 3765 case CSSPropertyScrollSnapMarginInlineEnd: |
3766 return ZoomAdjustedPixelValueForLength(style.ScrollSnapMarginInlineEnd(), | 3766 return ZoomAdjustedPixelValueForLength(style.ScrollSnapMarginInlineEnd(), |
3767 style); | 3767 style); |
| 3768 case CSSPropertyScrollBoundaryBehavior: |
| 3769 if (style.ScrollBoundaryBehaviorX() == style.ScrollBoundaryBehaviorY()) |
| 3770 return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorX()); |
| 3771 return nullptr; |
| 3772 case CSSPropertyScrollBoundaryBehaviorX: |
| 3773 return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorX()); |
| 3774 case CSSPropertyScrollBoundaryBehaviorY: |
| 3775 return CSSIdentifierValue::Create(style.ScrollBoundaryBehaviorY()); |
3768 case CSSPropertyTranslate: { | 3776 case CSSPropertyTranslate: { |
3769 if (!style.Translate()) | 3777 if (!style.Translate()) |
3770 return CSSIdentifierValue::Create(CSSValueNone); | 3778 return CSSIdentifierValue::Create(CSSValueNone); |
3771 | 3779 |
3772 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); | 3780 CSSValueList* list = CSSValueList::CreateSpaceSeparated(); |
3773 if (layout_object && layout_object->IsBox()) { | 3781 if (layout_object && layout_object->IsBox()) { |
3774 LayoutRect box = ToLayoutBox(layout_object)->BorderBoxRect(); | 3782 LayoutRect box = ToLayoutBox(layout_object)->BorderBoxRect(); |
3775 list->Append(*ZoomAdjustedPixelValue( | 3783 list->Append(*ZoomAdjustedPixelValue( |
3776 FloatValueForLength(style.Translate()->X(), box.Width().ToFloat()), | 3784 FloatValueForLength(style.Translate()->X(), box.Width().ToFloat()), |
3777 style)); | 3785 style)); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3857 case CSSPropertyAll: | 3865 case CSSPropertyAll: |
3858 return nullptr; | 3866 return nullptr; |
3859 default: | 3867 default: |
3860 break; | 3868 break; |
3861 } | 3869 } |
3862 NOTREACHED(); | 3870 NOTREACHED(); |
3863 return nullptr; | 3871 return nullptr; |
3864 } | 3872 } |
3865 | 3873 |
3866 } // namespace blink | 3874 } // namespace blink |
OLD | NEW |