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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2404213003: CSS will-change: Mentioning transform properties gives containing block (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/LayoutTests/transforms/containing-block-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 } 1223 }
1224 return false; 1224 return false;
1225 } 1225 }
1226 1226
1227 bool ComputedStyle::hasWillChangeTransformHint() const { 1227 bool ComputedStyle::hasWillChangeTransformHint() const {
1228 for (const auto& property : 1228 for (const auto& property :
1229 m_rareNonInheritedData->m_willChange->m_properties) { 1229 m_rareNonInheritedData->m_willChange->m_properties) {
1230 switch (property) { 1230 switch (property) {
1231 case CSSPropertyTransform: 1231 case CSSPropertyTransform:
1232 case CSSPropertyAliasWebkitTransform: 1232 case CSSPropertyAliasWebkitTransform:
1233 case CSSPropertyPerspective:
1234 case CSSPropertyTranslate:
1235 case CSSPropertyScale:
1236 case CSSPropertyRotate:
1233 return true; 1237 return true;
1234 default: 1238 default:
1235 break; 1239 break;
1236 } 1240 }
1237 } 1241 }
1238 return false; 1242 return false;
1239 } 1243 }
1240 1244
1241 bool ComputedStyle::requireTransformOrigin( 1245 bool ComputedStyle::requireTransformOrigin(
1242 ApplyTransformOrigin applyOrigin, 1246 ApplyTransformOrigin applyOrigin,
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 if (value < 0) 2354 if (value < 0)
2351 fvalue -= 0.5f; 2355 fvalue -= 0.5f;
2352 else 2356 else
2353 fvalue += 0.5f; 2357 fvalue += 0.5f;
2354 } 2358 }
2355 2359
2356 return roundForImpreciseConversion<int>(fvalue / zoomFactor); 2360 return roundForImpreciseConversion<int>(fvalue / zoomFactor);
2357 } 2361 }
2358 2362
2359 } // namespace blink 2363 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/transforms/containing-block-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698