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

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

Issue 23643003: ImageBuffer-less SVG masking and clipping. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the Win build. Created 7 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) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 context->scale(scale); 259 context->scale(scale);
260 260
261 view->resize(containerSize()); 261 view->resize(containerSize());
262 262
263 if (view->needsLayout()) 263 if (view->needsLayout())
264 view->layout(); 264 view->layout();
265 265
266 view->paint(context, enclosingIntRect(srcRect)); 266 view->paint(context, enclosingIntRect(srcRect));
267 267
268 if (compositeOp != CompositeSourceOver) 268 if (compositeOp != CompositeSourceOver)
269 context->endTransparencyLayer(); 269 context->endLayer();
270 270
271 stateSaver.restore(); 271 stateSaver.restore();
272 272
273 if (imageObserver()) 273 if (imageObserver())
274 imageObserver()->didDraw(this); 274 imageObserver()->didDraw(this);
275 } 275 }
276 276
277 RenderBox* SVGImage::embeddedContentBox() const 277 RenderBox* SVGImage::embeddedContentBox() const
278 { 278 {
279 if (!m_page) 279 if (!m_page)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 return m_page; 410 return m_page;
411 } 411 }
412 412
413 String SVGImage::filenameExtension() const 413 String SVGImage::filenameExtension() const
414 { 414 {
415 return "svg"; 415 return "svg";
416 } 416 }
417 417
418 } 418 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderingContext.cpp ('k') | Source/core/svg/graphics/filters/SVGFEImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698