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

Side by Side Diff: Source/core/svg/graphics/SVGImage.h

Issue 22596003: Fix background blending for some cases where it did not work at all. The fix adds the blendMode par… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: adding TestExpectation lines for rebaselining Created 7 years, 4 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) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void destroyDecodedData() OVERRIDE { } 80 virtual void destroyDecodedData() OVERRIDE { }
81 virtual unsigned decodedSize() const OVERRIDE { return 0; } 81 virtual unsigned decodedSize() const OVERRIDE { return 0; }
82 82
83 // FIXME: Implement this to be less conservative. 83 // FIXME: Implement this to be less conservative.
84 virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; } 84 virtual bool currentFrameKnownToBeOpaque() OVERRIDE { return false; }
85 85
86 SVGImage(ImageObserver*); 86 SVGImage(ImageObserver*);
87 virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRe ct& toRect, CompositeOperator, BlendMode) OVERRIDE; 87 virtual void draw(GraphicsContext*, const FloatRect& fromRect, const FloatRe ct& toRect, CompositeOperator, BlendMode) OVERRIDE;
88 void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatR ect&, const FloatRect&, CompositeOperator, BlendMode); 88 void drawForContainer(GraphicsContext*, const FloatSize, float, const FloatR ect&, const FloatRect&, CompositeOperator, BlendMode);
89 void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&, 89 void drawPatternForContainer(GraphicsContext*, const FloatSize, float, const FloatRect&, const FloatSize&, const FloatPoint&,
90 CompositeOperator, const FloatRect&); 90 CompositeOperator, const FloatRect&, BlendMode);
91 91
92 OwnPtr<SVGImageChromeClient> m_chromeClient; 92 OwnPtr<SVGImageChromeClient> m_chromeClient;
93 OwnPtr<Page> m_page; 93 OwnPtr<Page> m_page;
94 IntSize m_intrinsicSize; 94 IntSize m_intrinsicSize;
95 }; 95 };
96 } 96 }
97 97
98 #endif // SVGImage_h 98 #endif // SVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698