| 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 0461b7cf2b909a9e96beaabc1f42b96e88740faa..acd3c6c6fb85bbcc238c94c3d0fa5320832baacd 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h
|
| @@ -113,23 +113,11 @@ class LayoutSVGResourceContainer : public LayoutSVGHiddenContainer {
|
| HashSet<LayoutObject*> m_clients;
|
| };
|
|
|
| -inline LayoutSVGResourceContainer* getLayoutSVGResourceContainerById(
|
| - TreeScope& treeScope,
|
| - const AtomicString& id) {
|
| - if (id.isEmpty())
|
| - return nullptr;
|
| -
|
| - if (LayoutSVGResourceContainer* layoutResource =
|
| - treeScope.ensureSVGTreeScopedResources().resourceById(id))
|
| - return layoutResource;
|
| -
|
| - return nullptr;
|
| -}
|
| -
|
| template <typename Layout>
|
| -Layout* getLayoutSVGResourceById(TreeScope& treeScope, const AtomicString& id) {
|
| +Layout* getLayoutSVGResourceById(SVGTreeScopeResources& treeScopeResources,
|
| + const AtomicString& id) {
|
| if (LayoutSVGResourceContainer* container =
|
| - getLayoutSVGResourceContainerById(treeScope, id)) {
|
| + treeScopeResources.resourceById(id)) {
|
| if (container->resourceType() == Layout::s_resourceType)
|
| return static_cast<Layout*>(container);
|
| }
|
|
|