Bug 130310

Summary: Explicitly include cstdio header for debug builds in InlineTextBox, RenderLayer, RenderObject
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: esprehn+autocc, glenn, kondapallykalyan, simon.fraser, webkit-ews
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Zan Dobersek
Reported 2014-03-16 13:19:15 PDT
Explicitly include cstdio header for debug builds in InlineTextBox, RenderLayer, RenderObject
Attachments
Patch (2.30 KB, patch)
2014-03-16 13:26 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2014-03-16 13:26:24 PDT
Darin Adler
Comment 2 2014-03-16 14:15:19 PDT
Comment on attachment 226857 [details] Patch I don’t think these includes should be inside #if statements. I also think it’s a little strange that we include <cstdio> rather than <stdio.h> since we call the function fprintf, not std::fprintf.
Zan Dobersek
Comment 3 2014-03-17 07:59:35 PDT
Comment on attachment 226857 [details] Patch Clearing flags on attachment: 226857 Committed r165732: <http://trac.webkit.org/changeset/165732>
Zan Dobersek
Comment 4 2014-03-17 07:59:43 PDT
All reviewed patches have been landed. Closing bug.
Zan Dobersek
Comment 5 2014-03-17 09:33:37 PDT
(In reply to comment #2) > (From update of attachment 226857 [details]) > I don’t think these includes should be inside #if statements. I also think it’s a little strange that we include <cstdio> rather than <stdio.h> since we call the function fprintf, not std::fprintf. Forgot to address this before landing, but did address it in r165736. http://trac.webkit.org/changeset/165736
Simon Fraser (smfr)
Comment 6 2014-03-17 10:16:19 PDT
Maybe we should change those printfs to use WTFLogAlways.
Note You need to log in before you can comment on or make changes to this bug.