OLD | NEW |
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 Loading... |
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, *value))); | 570 state.style()->setClipPath(ShapeClipPathOperation::create(basicShapeForV
alue(state, *value))); |
571 } | 571 } |
572 if (value->isPrimitiveValue()) { | 572 if (value->isPrimitiveValue()) { |
573 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 573 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 return; | 851 return; |
852 case CSSValueSuper: | 852 case CSSValueSuper: |
853 svgStyle.setBaselineShift(BS_SUPER); | 853 svgStyle.setBaselineShift(BS_SUPER); |
854 return; | 854 return; |
855 default: | 855 default: |
856 ASSERT_NOT_REACHED(); | 856 ASSERT_NOT_REACHED(); |
857 } | 857 } |
858 } | 858 } |
859 | 859 |
860 } // namespace blink | 860 } // namespace blink |
OLD | NEW |