Bug 195859

Summary: Define the type of SVGPropertyOwnerRegistry for all SVG elements
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: SVGAssignee: Said Abou-Hallawa <sabouhallawa>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, rniwa, simon.fraser, thorton, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 191237, 195862    
Attachments:
Description Flags
Patch
none
Patch none

Said Abou-Hallawa
Reported 2019-03-16 23:44:05 PDT
SVGPropertyOwnerRegistry will eventually replace SVGAttributeOwnerProxyImpl.
Attachments
Patch (116.08 KB, patch)
2019-03-16 23:49 PDT, Said Abou-Hallawa
no flags
Patch (128.23 KB, patch)
2019-03-18 15:53 PDT, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2019-03-16 23:49:24 PDT
Simon Fraser (smfr)
Comment 2 2019-03-18 13:28:48 PDT
Comment on attachment 364960 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364960&action=review > Source/WebCore/svg/SVGFEBlendElement.h:71 > + using PropertyRegistry = SVGPropertyOwnerRegistry<SVGFEBlendElement, SVGFilterPrimitiveStandardAttributes>; > + const SVGPropertyRegistry& propertyRegistry() const final { return m_propertyRegistry; } > + > + static bool isKnownAttribute(const QualifiedName& attributeName) > + { > + return AttributeOwnerProxy::isKnownAttribute(attributeName) || PropertyRegistry::isKnownAttribute(attributeName); > + } Lots of classes have this same boilerplate. Can it be pushed to a base class?
Said Abou-Hallawa
Comment 3 2019-03-18 15:35:36 PDT
Comment on attachment 364960 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364960&action=review >> Source/WebCore/svg/SVGFEBlendElement.h:71 >> + } > > Lots of classes have this same boilerplate. Can it be pushed to a base class? It is a static function which uses different types of AttributeOwnerProxy and PropertyRegistry so it can't be virtual. But it will go away once the tear-off objects are removed.
Said Abou-Hallawa
Comment 4 2019-03-18 15:53:16 PDT
WebKit Commit Bot
Comment 5 2019-03-18 16:33:17 PDT
Comment on attachment 365083 [details] Patch Clearing flags on attachment: 365083 Committed r243114: <https://trac.webkit.org/changeset/243114>
WebKit Commit Bot
Comment 6 2019-03-18 16:33:18 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2019-03-18 16:43:31 PDT
Note You need to log in before you can comment on or make changes to this bug.