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

Side by Side Diff: Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 23591068: Generate toCSSFooValue() for CSSAspectRatioValue, CSSBorderImageSliceValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 | « Source/core/css/MediaQueryEvaluator.cpp ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 state.style()->setAspectRatioDenominator(state.parentStyle()->aspectRatioDen ominator()); 622 state.style()->setAspectRatioDenominator(state.parentStyle()->aspectRatioDen ominator());
623 state.style()->setAspectRatioNumerator(state.parentStyle()->aspectRatioNumer ator()); 623 state.style()->setAspectRatioNumerator(state.parentStyle()->aspectRatioNumer ator());
624 } 624 }
625 625
626 void StyleBuilderFunctions::applyValueCSSPropertyWebkitAspectRatio(StyleResolver State& state, CSSValue* value) 626 void StyleBuilderFunctions::applyValueCSSPropertyWebkitAspectRatio(StyleResolver State& state, CSSValue* value)
627 { 627 {
628 if (!value->isAspectRatioValue()) { 628 if (!value->isAspectRatioValue()) {
629 state.style()->setHasAspectRatio(false); 629 state.style()->setHasAspectRatio(false);
630 return; 630 return;
631 } 631 }
632 CSSAspectRatioValue* aspectRatioValue = static_cast<CSSAspectRatioValue*>(va lue); 632 CSSAspectRatioValue* aspectRatioValue = toCSSAspectRatioValue(value);
633 state.style()->setHasAspectRatio(true); 633 state.style()->setHasAspectRatio(true);
634 state.style()->setAspectRatioDenominator(aspectRatioValue->denominatorValue( )); 634 state.style()->setAspectRatioDenominator(aspectRatioValue->denominatorValue( ));
635 state.style()->setAspectRatioNumerator(aspectRatioValue->numeratorValue()); 635 state.style()->setAspectRatioNumerator(aspectRatioValue->numeratorValue());
636 } 636 }
637 637
638 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta te& state, CSSValue* value) 638 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta te& state, CSSValue* value)
639 { 639 {
640 if (value->isPrimitiveValue()) { 640 if (value->isPrimitiveValue()) {
641 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 641 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
642 if (primitiveValue->getValueID() == CSSValueNone) { 642 if (primitiveValue->getValueID() == CSSValueNone) {
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2396 break; 2396 break;
2397 } 2397 }
2398 case CSSPropertyEnableBackground: 2398 case CSSPropertyEnableBackground:
2399 // Silently ignoring this property for now 2399 // Silently ignoring this property for now
2400 // http://bugs.webkit.org/show_bug.cgi?id=6022 2400 // http://bugs.webkit.org/show_bug.cgi?id=6022
2401 break; 2401 break;
2402 } 2402 }
2403 } 2403 }
2404 2404
2405 } // namespace WebCore 2405 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryEvaluator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698