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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 } else if (primitiveValue->isNumber()) { | 611 } else if (primitiveValue->isNumber()) { |
612 resetEffectiveZoom(state); | 612 resetEffectiveZoom(state); |
613 if (float number = primitiveValue->getFloatValue()) | 613 if (float number = primitiveValue->getFloatValue()) |
614 state.setZoom(number); | 614 state.setZoom(number); |
615 } | 615 } |
616 } | 616 } |
617 | 617 |
618 void StyleBuilderFunctions::applyValueCSSPropertyWebkitBorderImage(StyleResolver
State& state, CSSValue* value) | 618 void StyleBuilderFunctions::applyValueCSSPropertyWebkitBorderImage(StyleResolver
State& state, CSSValue* value) |
619 { | 619 { |
620 NinePieceImage image; | 620 NinePieceImage image; |
621 state.styleMap().mapNinePieceImage(state.style(), CSSPropertyWebkitBorderIma
ge, value, image); | 621 CSSToStyleMap::mapNinePieceImage(state, CSSPropertyWebkitBorderImage, value,
image); |
622 state.style()->setBorderImage(image); | 622 state.style()->setBorderImage(image); |
623 } | 623 } |
624 | 624 |
625 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta
te& state, CSSValue* value) | 625 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta
te& state, CSSValue* value) |
626 { | 626 { |
627 if (value->isPrimitiveValue()) { | 627 if (value->isPrimitiveValue()) { |
628 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 628 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
629 if (primitiveValue->getValueID() == CSSValueNone) { | 629 if (primitiveValue->getValueID() == CSSValueNone) { |
630 state.style()->setClipPath(nullptr); | 630 state.style()->setClipPath(nullptr); |
631 } else if (primitiveValue->isShape()) { | 631 } else if (primitiveValue->isShape()) { |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 return; | 910 return; |
911 case CSSValueSuper: | 911 case CSSValueSuper: |
912 svgStyle.setBaselineShift(BS_SUPER); | 912 svgStyle.setBaselineShift(BS_SUPER); |
913 return; | 913 return; |
914 default: | 914 default: |
915 ASSERT_NOT_REACHED(); | 915 ASSERT_NOT_REACHED(); |
916 } | 916 } |
917 } | 917 } |
918 | 918 |
919 } // namespace blink | 919 } // namespace blink |
OLD | NEW |