Bug 122726 - Move setPseudoStyle() to RenderImage (from RenderElement.)
Summary: Move setPseudoStyle() to RenderImage (from RenderElement.)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-13 05:53 PDT by Andreas Kling
Modified: 2013-10-13 14:01 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.49 KB, patch)
2013-10-13 05:53 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-10-13 05:53:04 PDT
Move setPseudoStyle() to RenderImage (from RenderElement.)
Comment 1 Andreas Kling 2013-10-13 05:53:35 PDT
Created attachment 214098 [details]
Patch
Comment 2 Antti Koivisto 2013-10-13 06:00:52 PDT
Comment on attachment 214098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=214098&action=review

> Source/WebCore/rendering/RenderImage.cpp:79
> +void RenderImage::setPseudoStyle(PassRefPtr<RenderStyle> pseudoStyle)

I thought we were getting rid of PassRefPtr
Comment 3 Antti Koivisto 2013-10-13 06:03:02 PDT
Comment on attachment 214098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=214098&action=review

> Source/WebCore/rendering/RenderImage.cpp:86
> +    RefPtr<RenderStyle> style = RenderStyle::create();

auto
Comment 4 WebKit Commit Bot 2013-10-13 08:55:06 PDT
Comment on attachment 214098 [details]
Patch

Clearing flags on attachment: 214098

Committed r157371: <http://trac.webkit.org/changeset/157371>
Comment 5 WebKit Commit Bot 2013-10-13 08:55:08 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Darin Adler 2013-10-13 14:01:47 PDT
Comment on attachment 214098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=214098&action=review

>> Source/WebCore/rendering/RenderImage.cpp:79
>> +void RenderImage::setPseudoStyle(PassRefPtr<RenderStyle> pseudoStyle)
> 
> I thought we were getting rid of PassRefPtr

For return values there is no reason to use it any more. For arguments we have not yet figured out our new approach. But regardless of that, this function does not need a PassRefPtr. It doesn’t seem to take ownership at all.