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

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

Issue 2662203002: CSS: Rotate support for none and fixed responsive-test.js (Closed)
Patch Set: avoid expectation failure on Mac Created 3 years, 10 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 3552 matching lines...) Expand 10 before | Expand all | Expand 10 after
3563 *zoomAdjustedPixelValueForLength(style.translate()->y(), style)); 3563 *zoomAdjustedPixelValueForLength(style.translate()->y(), style));
3564 } 3564 }
3565 3565
3566 if (style.translate()->z() != 0) 3566 if (style.translate()->z() != 0)
3567 list->append(*zoomAdjustedPixelValue(style.translate()->z(), style)); 3567 list->append(*zoomAdjustedPixelValue(style.translate()->z(), style));
3568 3568
3569 return list; 3569 return list;
3570 } 3570 }
3571 case CSSPropertyRotate: { 3571 case CSSPropertyRotate: {
3572 if (!style.rotate()) 3572 if (!style.rotate())
3573 return CSSPrimitiveValue::create(0, 3573 return CSSIdentifierValue::create(CSSValueNone);
3574 CSSPrimitiveValue::UnitType::Degrees);
3575 3574
3576 CSSValueList* list = CSSValueList::createSpaceSeparated(); 3575 CSSValueList* list = CSSValueList::createSpaceSeparated();
3577 if (style.rotate()->x() != 0 || style.rotate()->y() != 0 || 3576 if (style.rotate()->x() != 0 || style.rotate()->y() != 0 ||
3578 style.rotate()->z() != 1) { 3577 style.rotate()->z() != 1) {
3579 list->append(*CSSPrimitiveValue::create( 3578 list->append(*CSSPrimitiveValue::create(
3580 style.rotate()->x(), CSSPrimitiveValue::UnitType::Number)); 3579 style.rotate()->x(), CSSPrimitiveValue::UnitType::Number));
3581 list->append(*CSSPrimitiveValue::create( 3580 list->append(*CSSPrimitiveValue::create(
3582 style.rotate()->y(), CSSPrimitiveValue::UnitType::Number)); 3581 style.rotate()->y(), CSSPrimitiveValue::UnitType::Number));
3583 list->append(*CSSPrimitiveValue::create( 3582 list->append(*CSSPrimitiveValue::create(
3584 style.rotate()->z(), CSSPrimitiveValue::UnitType::Number)); 3583 style.rotate()->z(), CSSPrimitiveValue::UnitType::Number));
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
3641 case CSSPropertyAll: 3640 case CSSPropertyAll:
3642 return nullptr; 3641 return nullptr;
3643 default: 3642 default:
3644 break; 3643 break;
3645 } 3644 }
3646 ASSERT_NOT_REACHED(); 3645 ASSERT_NOT_REACHED();
3647 return nullptr; 3646 return nullptr;
3648 } 3647 }
3649 3648
3650 } // namespace blink 3649 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698