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

Side by Side Diff: Source/platform/graphics/filters/Filter.h

Issue 1346143005: Scale objectBoundingBox units for primitive dimensions w/ -webkit-filter (Closed) 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
« no previous file with comments | « Source/core/layout/svg/ReferenceFilterBuilder.cpp ('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 class SourceGraphic; 33 class SourceGraphic;
34 class FilterEffect; 34 class FilterEffect;
35 35
36 class PLATFORM_EXPORT Filter final : public RefCountedWillBeGarbageCollectedFina lized<Filter> { 36 class PLATFORM_EXPORT Filter final : public RefCountedWillBeGarbageCollectedFina lized<Filter> {
37 public: 37 public:
38 enum UnitScaling { 38 enum UnitScaling {
39 UserSpace, 39 UserSpace,
40 BoundingBox 40 BoundingBox
41 }; 41 };
42 42
43 static PassRefPtrWillBeRawPtr<Filter> create(const FloatRect& referenceBox, const FloatRect& filterRegion, float scale, UnitScaling = UserSpace); 43 static PassRefPtrWillBeRawPtr<Filter> create(const FloatRect& referenceBox, const FloatRect& filterRegion, float scale, UnitScaling);
44 static PassRefPtrWillBeRawPtr<Filter> create(float scale); 44 static PassRefPtrWillBeRawPtr<Filter> create(float scale);
45 45
46 ~Filter(); 46 ~Filter();
47 DECLARE_TRACE(); 47 DECLARE_TRACE();
48 48
49 float scale() const { return m_scale; } 49 float scale() const { return m_scale; }
50 FloatRect mapLocalRectToAbsoluteRect(const FloatRect&) const; 50 FloatRect mapLocalRectToAbsoluteRect(const FloatRect&) const;
51 FloatRect mapAbsoluteRectToLocalRect(const FloatRect&) const; 51 FloatRect mapAbsoluteRectToLocalRect(const FloatRect&) const;
52 52
53 float applyHorizontalScale(float value) const; 53 float applyHorizontalScale(float value) const;
(...skipping 19 matching lines...) Expand all
73 float m_scale; 73 float m_scale;
74 UnitScaling m_unitScaling; 74 UnitScaling m_unitScaling;
75 75
76 RefPtrWillBeMember<SourceGraphic> m_sourceGraphic; 76 RefPtrWillBeMember<SourceGraphic> m_sourceGraphic;
77 RefPtrWillBeMember<FilterEffect> m_lastEffect; 77 RefPtrWillBeMember<FilterEffect> m_lastEffect;
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // Filter_h 82 #endif // Filter_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/ReferenceFilterBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698