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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.cpp

Issue 2329803002: Drop FilterEffect::m_absolutePaintRect (Closed)
Patch Set: Add comment Created 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 33
34 SourceGraphic::~SourceGraphic() 34 SourceGraphic::~SourceGraphic()
35 { 35 {
36 } 36 }
37 37
38 SourceGraphic* SourceGraphic::create(Filter* filter) 38 SourceGraphic* SourceGraphic::create(Filter* filter)
39 { 39 {
40 return new SourceGraphic(filter); 40 return new SourceGraphic(filter);
41 } 41 }
42 42
43 FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRe ct) 43 FloatRect SourceGraphic::determineAbsolutePaintRect(const FloatRect& requestedRe ct) const
44 { 44 {
45 FloatRect srcRect = intersection(m_sourceRect, requestedRect); 45 return intersection(m_sourceRect, requestedRect);
46 addAbsolutePaintRect(srcRect);
47 return srcRect;
48 } 46 }
49 47
50 void SourceGraphic::setSourceRect(const IntRect& sourceRect) 48 void SourceGraphic::setSourceRect(const IntRect& sourceRect)
51 { 49 {
52 m_sourceRect = sourceRect; 50 m_sourceRect = sourceRect;
53 } 51 }
54 52
55 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co nst 53 TextStream& SourceGraphic::externalRepresentation(TextStream& ts, int indent) co nst
56 { 54 {
57 writeIndent(ts, indent); 55 writeIndent(ts, indent);
58 ts << "[SourceGraphic]\n"; 56 ts << "[SourceGraphic]\n";
59 return ts; 57 return ts;
60 } 58 }
61 59
62 } // namespace blink 60 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/SourceGraphic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698