OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class FilterEffect; | 32 class FilterEffect; |
33 class SVGFilterElement; | 33 class SVGFilterElement; |
34 class SVGFilterGraphNodeMap; | 34 class SVGFilterGraphNodeMap; |
35 | 35 |
36 class FilterData final : public GarbageCollected<FilterData> { | 36 class FilterData final : public GarbageCollected<FilterData> { |
37 public: | 37 public: |
38 /* | 38 /* |
39 * The state transitions should follow the following: | 39 * The state transitions should follow the following: |
40 * Initial -> RecordingContent -> ReadyToPaint -> PaintingFilter -> ReadyToP
aint | 40 * Initial->RecordingContent->ReadyToPaint->PaintingFilter->ReadyToPaint |
41 * | ^ | ^ | 41 * | ^ | ^ |
42 * v | v | | 42 * v | v | |
43 * RecordingContentCycleDetected PaintingFilterCycle | 43 * RecordingContentCycleDetected PaintingFilterCycle |
44 */ | 44 */ |
45 enum FilterDataState { | 45 enum FilterDataState { |
46 Initial, | 46 Initial, |
47 RecordingContent, | 47 RecordingContent, |
48 RecordingContentCycleDetected, | 48 RecordingContentCycleDetected, |
49 ReadyToPaint, | 49 ReadyToPaint, |
50 PaintingFilter, | 50 PaintingFilter, |
51 PaintingFilterCycleDetected | 51 PaintingFilterCycleDetected |
52 }; | 52 }; |
53 | 53 |
54 static FilterData* create() { return new FilterData(); } | 54 static FilterData* create() { return new FilterData(); } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 using FilterMap = PersistentHeapHashMap<LayoutObject*, Member<FilterData>>; | 109 using FilterMap = PersistentHeapHashMap<LayoutObject*, Member<FilterData>>; |
110 FilterMap m_filter; | 110 FilterMap m_filter; |
111 }; | 111 }; |
112 | 112 |
113 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceFilter, isSVGResourceFilter()); | 113 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceFilter, isSVGResourceFilter()); |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 #endif | 117 #endif |
OLD | NEW |