Summary: | SVG: applyResource() should take a RenderElement&. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | SVG | Assignee: | Andreas Kling <kling> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, dino, d-r, esprehn+autocc, fmalita, glenn, gyuyoung.kim, kling, kondapallykalyan, pdr, schenney, simon.fraser, zimmermann | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andreas Kling
2013-10-24 12:45:44 PDT
Created attachment 215096 [details]
Patch
Comment on attachment 215096 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=215096&action=review > Source/WebCore/rendering/svg/SVGTextRunRenderingContext.cpp:58 > -static inline RenderObject* firstParentRendererForNonTextNode(RenderObject* renderer) > +static inline RenderElement* firstParentRendererForNonTextNode(RenderObject* renderer) > { > ASSERT(renderer); ASSERT(renderer) is usually a clue that the argument should be a reference, not a pointer. > Source/WebCore/rendering/svg/SVGTextRunRenderingContext.cpp:197 > + if (activePaintingResource->applyResource(*parentRenderObject, parentRenderObjectStyle, context, resourceMode)) { What guarantees that parentRenderObject won’t be null here? Committed r158004: <http://trac.webkit.org/changeset/158004> |