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

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

Issue 2625313002: CSS: Rotate support for none and fixed responsive-test.js (Closed)
Patch Set: Created 3 years, 11 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 3561 matching lines...) Expand 10 before | Expand all | Expand 10 after
3572 *zoomAdjustedPixelValueForLength(style.translate()->y(), style)); 3572 *zoomAdjustedPixelValueForLength(style.translate()->y(), style));
3573 } 3573 }
3574 3574
3575 if (style.translate()->z() != 0) 3575 if (style.translate()->z() != 0)
3576 list->append(*zoomAdjustedPixelValue(style.translate()->z(), style)); 3576 list->append(*zoomAdjustedPixelValue(style.translate()->z(), style));
3577 3577
3578 return list; 3578 return list;
3579 } 3579 }
3580 case CSSPropertyRotate: { 3580 case CSSPropertyRotate: {
3581 if (!style.rotate()) 3581 if (!style.rotate())
3582 return CSSPrimitiveValue::create(0, 3582 return CSSIdentifierValue::create(CSSValueNone);
3583 CSSPrimitiveValue::UnitType::Degrees);
3584 3583
3585 CSSValueList* list = CSSValueList::createSpaceSeparated(); 3584 CSSValueList* list = CSSValueList::createSpaceSeparated();
3586 if (style.rotate()->x() != 0 || style.rotate()->y() != 0 || 3585 if (style.rotate()->x() != 0 || style.rotate()->y() != 0 ||
3587 style.rotate()->z() != 1) { 3586 style.rotate()->z() != 1) {
3588 list->append(*CSSPrimitiveValue::create( 3587 list->append(*CSSPrimitiveValue::create(
3589 style.rotate()->x(), CSSPrimitiveValue::UnitType::Number)); 3588 style.rotate()->x(), CSSPrimitiveValue::UnitType::Number));
3590 list->append(*CSSPrimitiveValue::create( 3589 list->append(*CSSPrimitiveValue::create(
3591 style.rotate()->y(), CSSPrimitiveValue::UnitType::Number)); 3590 style.rotate()->y(), CSSPrimitiveValue::UnitType::Number));
3592 list->append(*CSSPrimitiveValue::create( 3591 list->append(*CSSPrimitiveValue::create(
3593 style.rotate()->z(), CSSPrimitiveValue::UnitType::Number)); 3592 style.rotate()->z(), CSSPrimitiveValue::UnitType::Number));
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
3650 case CSSPropertyAll: 3649 case CSSPropertyAll:
3651 return nullptr; 3650 return nullptr;
3652 default: 3651 default:
3653 break; 3652 break;
3654 } 3653 }
3655 ASSERT_NOT_REACHED(); 3654 ASSERT_NOT_REACHED();
3656 return nullptr; 3655 return nullptr;
3657 } 3656 }
3658 3657
3659 } // namespace blink 3658 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698