[Webkit-unassigned] [Bug 43779] RenderImage::imageChanged invalidates wrong area

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 25 06:20:08 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43779





--- Comment #44 from Nikolas Zimmermann <zimmermann at kde.org>  2010-08-25 06:20:07 PST ---
(In reply to comment #43)
> (In reply to comment #42)
> > (From update of attachment 65341 [details] [details])
> > Hi Patrick,
> > 
> > unfortunately there are still some issues, that I missed before:
> > 
> > WebCore/rendering/RenderImageResource.cpp:36
> >  +  PassOwnPtr<RenderImageResource> RenderImageResource::create(RenderObject* renderer, StyleImage* styleImage)
> > This solution is not a good idea, the RenderImageResource::create method, should only ever created a RenderImageResource object, not a RenderImageResourceStyleImage.
> > Otherwhise the design is pretty confusing. That in turn also means RenderImage shouldn't receive the new StyleImage* constructor parameter, I think its better if it would take a PassOwnPtr<RenderImageResource> that can be stored as m_imageResource member variable.
> 
> RenderImageResource::create needs a RenderObject* as a first parameter! Where should I get it from, when I use it in the constructor of RenderImage?

Remove the RenderObject* paramater from the constructor, and add an initialize(RenderObject*) method, that can be called from the RenderImage constructor, passing "this" to the RenderImageResource.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list