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

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

Issue 2145823002: Implement the overflow-anchor CSS property as an opt-out for ScrollAnchoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put opt-out behind RuntimeEnabledFeature and update tests Created 4 years, 5 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 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 case CSSPropertyOutlineOffset: 2155 case CSSPropertyOutlineOffset:
2156 return zoomAdjustedPixelValue(style.outlineOffset(), style); 2156 return zoomAdjustedPixelValue(style.outlineOffset(), style);
2157 case CSSPropertyOutlineStyle: 2157 case CSSPropertyOutlineStyle:
2158 if (style.outlineStyleIsAuto()) 2158 if (style.outlineStyleIsAuto())
2159 return CSSPrimitiveValue::createIdentifier(CSSValueAuto); 2159 return CSSPrimitiveValue::createIdentifier(CSSValueAuto);
2160 return CSSPrimitiveValue::create(style.outlineStyle()); 2160 return CSSPrimitiveValue::create(style.outlineStyle());
2161 case CSSPropertyOutlineWidth: 2161 case CSSPropertyOutlineWidth:
2162 return zoomAdjustedPixelValue(style.outlineWidth(), style); 2162 return zoomAdjustedPixelValue(style.outlineWidth(), style);
2163 case CSSPropertyOverflow: 2163 case CSSPropertyOverflow:
2164 return CSSPrimitiveValue::create(max(style.overflowX(), style.overflowY( ))); 2164 return CSSPrimitiveValue::create(max(style.overflowX(), style.overflowY( )));
2165 case CSSPropertyOverflowAnchor:
2166 return CSSPrimitiveValue::create(style.overflowAnchor());
2165 case CSSPropertyOverflowWrap: 2167 case CSSPropertyOverflowWrap:
2166 return CSSPrimitiveValue::create(style.overflowWrap()); 2168 return CSSPrimitiveValue::create(style.overflowWrap());
2167 case CSSPropertyOverflowX: 2169 case CSSPropertyOverflowX:
2168 return CSSPrimitiveValue::create(style.overflowX()); 2170 return CSSPrimitiveValue::create(style.overflowX());
2169 case CSSPropertyOverflowY: 2171 case CSSPropertyOverflowY:
2170 return CSSPrimitiveValue::create(style.overflowY()); 2172 return CSSPrimitiveValue::create(style.overflowY());
2171 case CSSPropertyPaddingTop: { 2173 case CSSPropertyPaddingTop: {
2172 Length paddingTop = style.paddingTop(); 2174 Length paddingTop = style.paddingTop();
2173 if (paddingTop.isFixed() || !layoutObject || !layoutObject->isBox()) 2175 if (paddingTop.isFixed() || !layoutObject || !layoutObject->isBox())
2174 return zoomAdjustedPixelValueForLength(paddingTop, style); 2176 return zoomAdjustedPixelValueForLength(paddingTop, style);
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
3010 case CSSPropertyAll: 3012 case CSSPropertyAll:
3011 return nullptr; 3013 return nullptr;
3012 default: 3014 default:
3013 break; 3015 break;
3014 } 3016 }
3015 ASSERT_NOT_REACHED(); 3017 ASSERT_NOT_REACHED();
3016 return nullptr; 3018 return nullptr;
3017 } 3019 }
3018 3020
3019 } // namespace blink 3021 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.in ('k') | third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698