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

Side by Side Diff: Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 String CanvasRenderingContext2D::filter() const 647 String CanvasRenderingContext2D::filter() const
648 { 648 {
649 return state().unparsedFilter(); 649 return state().unparsedFilter();
650 } 650 }
651 651
652 void CanvasRenderingContext2D::setFilter(const String& filterString) 652 void CanvasRenderingContext2D::setFilter(const String& filterString)
653 { 653 {
654 if (filterString == state().unparsedFilter()) 654 if (filterString == state().unparsedFilter())
655 return; 655 return;
656 656
657 RefPtrWillBeRawPtr<CSSValue> filterValue = CSSParser::parseSingleValue(CSSPr opertyWebkitFilter, filterString, CSSParserContext(HTMLStandardMode, 0)); 657 RefPtr<CSSValue> filterValue = CSSParser::parseSingleValue(CSSPropertyWebkit Filter, filterString, CSSParserContext(HTMLStandardMode, 0));
658 658
659 if (!filterValue || filterValue->isInitialValue() || filterValue->isInherite dValue()) 659 if (!filterValue || filterValue->isInitialValue() || filterValue->isInherite dValue())
660 return; 660 return;
661 661
662 modifiableState().setUnparsedFilter(filterString); 662 modifiableState().setUnparsedFilter(filterString);
663 modifiableState().setFilter(filterValue.release()); 663 modifiableState().setFilter(filterValue.release());
664 } 664 }
665 665
666 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> CanvasRenderingContext2D::currentTransf orm() const 666 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> CanvasRenderingContext2D::currentTransf orm() const
667 { 667 {
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 if (imageType == CanvasRenderingContext2DState::NonOpaqueImage) 2320 if (imageType == CanvasRenderingContext2DState::NonOpaqueImage)
2321 return; 2321 return;
2322 if (alpha < 0xFF) 2322 if (alpha < 0xFF)
2323 return; 2323 return;
2324 } 2324 }
2325 2325
2326 canvas()->buffer()->willOverwriteCanvas(); 2326 canvas()->buffer()->willOverwriteCanvas();
2327 } 2327 }
2328 2328
2329 } // namespace blink 2329 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/style/StylePendingImage.h ('k') | Source/modules/canvas2d/CanvasRenderingContext2DState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698