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

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

Issue 1373753002: Change CSSToStyleMap functions to take const CSSValue&s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix Created 5 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
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 } else if (primitiveValue->isNumber()) { 553 } else if (primitiveValue->isNumber()) {
554 resetEffectiveZoom(state); 554 resetEffectiveZoom(state);
555 if (float number = primitiveValue->getFloatValue()) 555 if (float number = primitiveValue->getFloatValue())
556 state.setZoom(number); 556 state.setZoom(number);
557 } 557 }
558 } 558 }
559 559
560 void StyleBuilderFunctions::applyValueCSSPropertyWebkitBorderImage(StyleResolver State& state, CSSValue* value) 560 void StyleBuilderFunctions::applyValueCSSPropertyWebkitBorderImage(StyleResolver State& state, CSSValue* value)
561 { 561 {
562 NinePieceImage image; 562 NinePieceImage image;
563 CSSToStyleMap::mapNinePieceImage(state, CSSPropertyWebkitBorderImage, value, image); 563 CSSToStyleMap::mapNinePieceImage(state, CSSPropertyWebkitBorderImage, *value , image);
564 state.style()->setBorderImage(image); 564 state.style()->setBorderImage(image);
565 } 565 }
566 566
567 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta te& state, CSSValue* value) 567 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta te& state, CSSValue* value)
568 { 568 {
569 if (value->isBasicShapeValue()) { 569 if (value->isBasicShapeValue()) {
570 state.style()->setClipPath(ShapeClipPathOperation::create(basicShapeForV alue(state, toCSSBasicShapeValue(*value)))); 570 state.style()->setClipPath(ShapeClipPathOperation::create(basicShapeForV alue(state, toCSSBasicShapeValue(*value))));
571 } 571 }
572 if (value->isPrimitiveValue()) { 572 if (value->isPrimitiveValue()) {
573 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 573 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 return; 846 return;
847 case CSSValueSuper: 847 case CSSValueSuper:
848 svgStyle.setBaselineShift(BS_SUPER); 848 svgStyle.setBaselineShift(BS_SUPER);
849 return; 849 return;
850 default: 850 default:
851 ASSERT_NOT_REACHED(); 851 ASSERT_NOT_REACHED();
852 } 852 }
853 } 853 }
854 854
855 } // namespace blink 855 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698