Bug 71247 - RenderImage.cpp calls SVGImage even if it's not defined
Summary: RenderImage.cpp calls SVGImage even if it's not defined
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: John Gregg
URL:
Keywords:
: 71235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-31 15:47 PDT by John Gregg
Modified: 2011-10-31 17:04 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.16 KB, patch)
2011-10-31 15:50 PDT, John Gregg
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Gregg 2011-10-31 15:47:11 PDT
RenderImage.cpp calls SVGImage even if it's not defined
Comment 1 John Gregg 2011-10-31 15:48:38 PDT
This was introduced in r98852, and causes a compile error if ENABLE_SVG=0.
Comment 2 John Gregg 2011-10-31 15:50:20 PDT
Created attachment 113096 [details]
Patch
Comment 3 John Gregg 2011-10-31 15:51:04 PDT
third_party/WebKit/Source/WebCore/rendering/RenderImage.cpp:549:36: error: use of undeclared identifier 'SVGImage'; did you mean 'CGImage'?
        return static_pointer_cast<SVGImage>(image)->embeddedContentBox();
                                   ^
1 error generated.
make: *** [out/Debug/obj.target/webcore_rendering/third_party/WebKit/Source/WebCore/rendering/RenderImage.o] Error 1
Comment 4 John Gregg 2011-10-31 16:02:00 PDT
Committed r98895: <http://trac.webkit.org/changeset/98895>
Comment 5 Alexey Proskuryakov 2011-10-31 17:04:43 PDT
*** Bug 71235 has been marked as a duplicate of this bug. ***