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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGResourcesCycleSolver.h

Issue 2821333002: Move the BreakCycle() method from the cycle solver to SVGResources (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 26 matching lines...) Expand all
37 public: 37 public:
38 SVGResourcesCycleSolver(LayoutObject*, SVGResources*); 38 SVGResourcesCycleSolver(LayoutObject*, SVGResources*);
39 ~SVGResourcesCycleSolver(); 39 ~SVGResourcesCycleSolver();
40 40
41 void ResolveCycles(); 41 void ResolveCycles();
42 42
43 typedef HashSet<LayoutSVGResourceContainer*> ResourceSet; 43 typedef HashSet<LayoutSVGResourceContainer*> ResourceSet;
44 44
45 private: 45 private:
46 bool ResourceContainsCycles(LayoutSVGResourceContainer*); 46 bool ResourceContainsCycles(LayoutSVGResourceContainer*);
47 void BreakCycle(LayoutSVGResourceContainer*);
48 47
49 LayoutObject* layout_object_; 48 LayoutObject* layout_object_;
50 SVGResources* resources_; 49 SVGResources* resources_;
51 50
52 ResourceSet active_resources_; 51 ResourceSet active_resources_;
53 ResourceSet dag_cache_; 52 ResourceSet dag_cache_;
54 }; 53 };
55 54
56 } // namespace blink 55 } // namespace blink
57 56
58 #endif 57 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698