Bug 158864

Summary: Drop some unnecessary header includes
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, darin, gyuyoung.kim, ysuzuki
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing
none
Patch
none
Patch none

Chris Dumez
Reported 2016-06-16 21:40:56 PDT
Drop some unnecessary header includes to try and reduce build times.
Attachments
Patch (27.44 KB, patch)
2016-06-16 22:06 PDT, Chris Dumez
no flags
Patch (27.51 KB, patch)
2016-06-16 22:12 PDT, Chris Dumez
no flags
Patch for landing (27.93 KB, patch)
2016-06-17 00:40 PDT, Gyuyoung Kim
no flags
Patch (14.64 KB, patch)
2017-07-14 09:13 PDT, Yusuke Suzuki
no flags
Patch (15.15 KB, patch)
2017-07-14 09:19 PDT, Yusuke Suzuki
no flags
Chris Dumez
Comment 1 2016-06-16 22:06:26 PDT
Chris Dumez
Comment 2 2016-06-16 22:12:24 PDT
Alexey Proskuryakov
Comment 3 2016-06-16 23:22:33 PDT
Comment on attachment 281534 [details] Patch rs=me, but this breaks Efl. ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp: In member function 'void WebCore::ScrollbarThemeEfl::loadThemeIfNeeded(WebCore::Scrollbar&)': ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:134:52: error: invalid use of incomplete type 'class WebCore::Frame' Page* page = downcast<FrameView>(view)->frame().page(); ^ In file included from ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:32:0: ../../Source/WebCore/page/FrameView.h:48:7: note: forward declaration of 'class WebCore::Frame' class Frame; ^ ninja: build stopped: subcommand failed.
Gyuyoung Kim
Comment 4 2016-06-17 00:11:58 PDT
(In reply to comment #3) > Comment on attachment 281534 [details] > Patch > > rs=me, but this breaks Efl. > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp: In member function > 'void WebCore::ScrollbarThemeEfl::loadThemeIfNeeded(WebCore::Scrollbar&)': > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:134:52: error: > invalid use of incomplete type 'class WebCore::Frame' > Page* page = downcast<FrameView>(view)->frame().page(); > ^ > In file included from > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:32:0: > ../../Source/WebCore/page/FrameView.h:48:7: note: forward declaration of > 'class WebCore::Frame' > class Frame; > ^ > ninja: build stopped: subcommand failed. Please add #include "Frame.h" in ScrollbarthemeEfl.cpp :)
Gyuyoung Kim
Comment 5 2016-06-17 00:40:37 PDT
Created attachment 281546 [details] Patch for landing
Gyuyoung Kim
Comment 6 2016-06-17 00:41:36 PDT
(In reply to comment #4) > (In reply to comment #3) > > Comment on attachment 281534 [details] > > Patch > > > > rs=me, but this breaks Efl. > > > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp: In member function > > 'void WebCore::ScrollbarThemeEfl::loadThemeIfNeeded(WebCore::Scrollbar&)': > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:134:52: error: > > invalid use of incomplete type 'class WebCore::Frame' > > Page* page = downcast<FrameView>(view)->frame().page(); > > ^ > > In file included from > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:32:0: > > ../../Source/WebCore/page/FrameView.h:48:7: note: forward declaration of > > 'class WebCore::Frame' > > class Frame; > > ^ > > ninja: build stopped: subcommand failed. > > Please add #include "Frame.h" in ScrollbarthemeEfl.cpp :) Fix it instead of Chris.
Chris Dumez
Comment 7 2016-06-17 08:43:17 PDT
Comment on attachment 281546 [details] Patch for landing Clearing flags on attachment: 281546 Committed r202167: <http://trac.webkit.org/changeset/202167>
Chris Dumez
Comment 8 2016-06-17 08:43:21 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 9 2016-06-17 08:43:40 PDT
(In reply to comment #6) > (In reply to comment #4) > > (In reply to comment #3) > > > Comment on attachment 281534 [details] > > > Patch > > > > > > rs=me, but this breaks Efl. > > > > > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp: In member function > > > 'void WebCore::ScrollbarThemeEfl::loadThemeIfNeeded(WebCore::Scrollbar&)': > > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:134:52: error: > > > invalid use of incomplete type 'class WebCore::Frame' > > > Page* page = downcast<FrameView>(view)->frame().page(); > > > ^ > > > In file included from > > > ../../Source/WebCore/platform/efl/ScrollbarThemeEfl.cpp:32:0: > > > ../../Source/WebCore/page/FrameView.h:48:7: note: forward declaration of > > > 'class WebCore::Frame' > > > class Frame; > > > ^ > > > ninja: build stopped: subcommand failed. > > > > Please add #include "Frame.h" in ScrollbarthemeEfl.cpp :) > > Fix it instead of Chris. Thank you Gyuyoung!
Yusuke Suzuki
Comment 10 2017-07-14 09:13:22 PDT
Reopening to attach new patch.
Yusuke Suzuki
Comment 11 2017-07-14 09:13:24 PDT
Yusuke Suzuki
Comment 12 2017-07-14 09:19:55 PDT
Yusuke Suzuki
Comment 13 2017-07-14 09:20:39 PDT
Oops, I mis-specified bug number, sorry.
Note You need to log in before you can comment on or make changes to this bug.