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