OLD | NEW |
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 Loading... |
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 |
OLD | NEW |