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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h

Issue 2772773005: Make resource lookup more uniform in SVGResources::buildResources (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
index 7fb14b767122a5b4dbfb9ffc08563ce17e1a1e7b..e68ee52ffb6956e6f766d140df04e1caee9736c7 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
@@ -21,7 +21,6 @@
#define LayoutSVGResourceContainer_h
#include "core/layout/svg/LayoutSVGHiddenContainer.h"
-#include "core/svg/SVGTreeScopeResources.h"
namespace blink {
@@ -116,17 +115,6 @@ class LayoutSVGResourceContainer : public LayoutSVGHiddenContainer {
HashSet<LayoutObject*> m_clients;
};
-template <typename Layout>
-Layout* getLayoutSVGResourceById(SVGTreeScopeResources& treeScopeResources,
- const AtomicString& id) {
- if (LayoutSVGResourceContainer* container =
- treeScopeResources.resourceById(id)) {
- if (container->resourceType() == Layout::s_resourceType)
- return static_cast<Layout*>(container);
- }
- return nullptr;
-}
-
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceContainer,
isSVGResourceContainer());

Powered by Google App Engine
This is Rietveld 408576698