OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
10 * | 10 * |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 String CanvasRenderingContext2D::filter() const | 646 String CanvasRenderingContext2D::filter() const |
647 { | 647 { |
648 return state().unparsedFilter(); | 648 return state().unparsedFilter(); |
649 } | 649 } |
650 | 650 |
651 void CanvasRenderingContext2D::setFilter(const String& filterString) | 651 void CanvasRenderingContext2D::setFilter(const String& filterString) |
652 { | 652 { |
653 if (filterString == state().unparsedFilter()) | 653 if (filterString == state().unparsedFilter()) |
654 return; | 654 return; |
655 | 655 |
656 RefPtrWillBeRawPtr<CSSValue> filterValue = CSSParser::parseSingleValue(CSSPr
opertyWebkitFilter, filterString, CSSParserContext(HTMLStandardMode, 0)); | 656 NullableCSSValue filterValue = CSSParser::parseSingleValue(CSSPropertyWebkit
Filter, filterString, CSSParserContext(HTMLStandardMode, 0)); |
657 | 657 |
658 if (!filterValue || filterValue->isInitialValue() || filterValue->isInherite
dValue()) | 658 if (!filterValue || filterValue->isInitialValue() || filterValue->isInherite
dValue()) |
659 return; | 659 return; |
660 | 660 |
661 modifiableState().setUnparsedFilter(filterString); | 661 modifiableState().setUnparsedFilter(filterString); |
662 modifiableState().setFilter(filterValue.release()); | 662 modifiableState().setFilter(*filterValue); |
663 } | 663 } |
664 | 664 |
665 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> CanvasRenderingContext2D::currentTransf
orm() const | 665 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> CanvasRenderingContext2D::currentTransf
orm() const |
666 { | 666 { |
667 return SVGMatrixTearOff::create(state().transform()); | 667 return SVGMatrixTearOff::create(state().transform()); |
668 } | 668 } |
669 | 669 |
670 void CanvasRenderingContext2D::setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMat
rixTearOff> passMatrixTearOff) | 670 void CanvasRenderingContext2D::setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMat
rixTearOff> passMatrixTearOff) |
671 { | 671 { |
672 RefPtrWillBeRawPtr<SVGMatrixTearOff> matrixTearOff = passMatrixTearOff; | 672 RefPtrWillBeRawPtr<SVGMatrixTearOff> matrixTearOff = passMatrixTearOff; |
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 if (imageType == CanvasRenderingContext2DState::NonOpaqueImage) | 2263 if (imageType == CanvasRenderingContext2DState::NonOpaqueImage) |
2264 return; | 2264 return; |
2265 if (alpha < 0xFF) | 2265 if (alpha < 0xFF) |
2266 return; | 2266 return; |
2267 } | 2267 } |
2268 | 2268 |
2269 canvas()->buffer()->willOverwriteCanvas(); | 2269 canvas()->buffer()->willOverwriteCanvas(); |
2270 } | 2270 } |
2271 | 2271 |
2272 } // namespace blink | 2272 } // namespace blink |
OLD | NEW |