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

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

Issue 2786643003: Implement support for the 'transform-box' property (Closed)
Patch Set: Update existing tests to be compatible Created 3 years, 8 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 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 CSSValue* bottom = 3151 CSSValue* bottom =
3152 zoomAdjustedPixelValueOrAuto(style.clip().bottom(), style); 3152 zoomAdjustedPixelValueOrAuto(style.clip().bottom(), style);
3153 CSSValue* left = zoomAdjustedPixelValueOrAuto(style.clip().left(), style); 3153 CSSValue* left = zoomAdjustedPixelValueOrAuto(style.clip().left(), style);
3154 return CSSQuadValue::create(top, right, bottom, left, 3154 return CSSQuadValue::create(top, right, bottom, left,
3155 CSSQuadValue::SerializeAsRect); 3155 CSSQuadValue::SerializeAsRect);
3156 } 3156 }
3157 case CSSPropertySpeak: 3157 case CSSPropertySpeak:
3158 return CSSIdentifierValue::create(style.speak()); 3158 return CSSIdentifierValue::create(style.speak());
3159 case CSSPropertyTransform: 3159 case CSSPropertyTransform:
3160 return computedTransform(layoutObject, style); 3160 return computedTransform(layoutObject, style);
3161 case CSSPropertyTransformBox:
3162 return CSSIdentifierValue::create(style.transformBox());
3161 case CSSPropertyTransformOrigin: { 3163 case CSSPropertyTransformOrigin: {
3162 CSSValueList* list = CSSValueList::createSpaceSeparated(); 3164 CSSValueList* list = CSSValueList::createSpaceSeparated();
3163 if (layoutObject) { 3165 if (layoutObject) {
3164 LayoutRect box; 3166 LayoutRect box;
3165 if (layoutObject->isBox()) 3167 if (layoutObject->isBox())
3166 box = toLayoutBox(layoutObject)->borderBoxRect(); 3168 box = toLayoutBox(layoutObject)->borderBoxRect();
3167 3169
3168 list->append(*zoomAdjustedPixelValue( 3170 list->append(*zoomAdjustedPixelValue(
3169 minimumValueForLength(style.transformOriginX(), box.width()), 3171 minimumValueForLength(style.transformOriginX(), box.width()),
3170 style)); 3172 style));
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
3691 case CSSPropertyAll: 3693 case CSSPropertyAll:
3692 return nullptr; 3694 return nullptr;
3693 default: 3695 default:
3694 break; 3696 break;
3695 } 3697 }
3696 ASSERT_NOT_REACHED(); 3698 ASSERT_NOT_REACHED();
3697 return nullptr; 3699 return nullptr;
3698 } 3700 }
3699 3701
3700 } // namespace blink 3702 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698