WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
68458
[EFL] Add DumpRenderTreeSupportEfl
https://bugs.webkit.org/show_bug.cgi?id=68458
Summary
[EFL] Add DumpRenderTreeSupportEfl
Raphael Kubo da Costa (:rakuco)
Reported
2011-09-20 12:12:20 PDT
[EFL] Add DumpRenderTreeSupportEfl
Attachments
Patch
(41.87 KB, patch)
2011-09-20 12:21 PDT
,
Raphael Kubo da Costa (:rakuco)
no flags
Details
Formatted Diff
Diff
Rebase after r95659, export the class to make DRT link without SHARED_CORE
(41.40 KB, patch)
2011-09-22 12:36 PDT
,
Raphael Kubo da Costa (:rakuco)
no flags
Details
Formatted Diff
Diff
Rebase on top of trunk
(43.72 KB, patch)
2011-10-10 11:13 PDT
,
Raphael Kubo da Costa (:rakuco)
no flags
Details
Formatted Diff
Diff
Rebase on top of trunk
(44.98 KB, patch)
2011-10-14 05:46 PDT
,
Raphael Kubo da Costa (:rakuco)
no flags
Details
Formatted Diff
Diff
Fifth time is a charm. Follow Kenneth's suggestions.
(44.82 KB, patch)
2011-10-14 06:07 PDT
,
Raphael Kubo da Costa (:rakuco)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Raphael Kubo da Costa (:rakuco)
Comment 1
2011-09-20 12:21:47 PDT
Created
attachment 108041
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 2
2011-09-20 12:22:51 PDT
Kenneth and tonikitoo, DRTSupportEfl is finally here. The patch looks big at first, but it's mostly moving functions which were already present from one place to another and adapting the code. If you still would like me do split the patch, please let me know.
WebKit Review Bot
Comment 3
2011-09-20 12:23:25 PDT
Attachment 108041
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/WebKit/efl/CMakeLists..." exit_code: 1 Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h:31: Ewk_History_Item is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Raphael Kubo da Costa (:rakuco)
Comment 4
2011-09-20 12:28:34 PDT
(In reply to
comment #3
)
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h:31: Ewk_History_Item is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] > Total errors found: 1 in 14 files
This is a false positive, Ewk_History_Item is actually called Ewk_History_Item.
Raphael Kubo da Costa (:rakuco)
Comment 5
2011-09-22 12:36:43 PDT
Created
attachment 108384
[details]
Rebase after
r95659
, export the class to make DRT link without SHARED_CORE
WebKit Review Bot
Comment 6
2011-09-22 12:39:24 PDT
Attachment 108384
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/WebKit/efl/CMakeLists..." exit_code: 1 Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h:31: Ewk_History_Item is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Raphael Kubo da Costa (:rakuco)
Comment 7
2011-10-10 11:13:44 PDT
Created
attachment 110371
[details]
Rebase on top of trunk
WebKit Review Bot
Comment 8
2011-10-10 11:17:29 PDT
Attachment 110371
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/WebKit/efl/CMakeLists..." exit_code: 1 Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h:31: Ewk_History_Item is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 1 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Raphael Kubo da Costa (:rakuco)
Comment 9
2011-10-14 05:46:55 PDT
Created
attachment 111003
[details]
Rebase on top of trunk
Kenneth Rohde Christiansen
Comment 10
2011-10-14 05:54:21 PDT
Comment on
attachment 111003
[details]
Rebase on top of trunk View in context:
https://bugs.webkit.org/attachment.cgi?id=111003&action=review
Pretty nice and definitely an improvement
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:55 > +DumpRenderTreeSupportEfl::DumpRenderTreeSupportEfl() > +{ > +} > + > +DumpRenderTreeSupportEfl::~DumpRenderTreeSupportEfl() > +{ > +}
Why not just define in the header?
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:77 > + WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); > + > + if (frame) > + frame->tree()->clearName();
This can be done in two lines
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:85 > + WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); > + > + if (frame) > + frame->loader()->setOpener(0);
here as well if (WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame)) frame->loader()->setOpener(0);
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:150 > +int DumpRenderTreeSupportEfl::numberOfPages(const Evas_Object* ewkFrame, float pageWidth, float pageHeight)
maybe this should just return unsigned?
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:160 > +int DumpRenderTreeSupportEfl::numberOfPagesForElementId(const Evas_Object* ewkFrame, const char* elementId, float pageWidth, float pageHeight)
here as well
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:236 > + WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); > + > + if (!frame) > + return 0; > + > + return frame->domWindow()->pendingUnloadEventListeners();
if (WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame)) return frame->domWindow()->pendingUnloadEventListeners(); return 0;
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:372 > + Ewk_History_Item* kid = ewk_history_item_new_from_core(children[i].get());
You must be "kidding" me :-)
> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h:42 > + DumpRenderTreeSupportEfl(); > + ~DumpRenderTreeSupportEfl();
Add the { } here
Raphael Kubo da Costa (:rakuco)
Comment 11
2011-10-14 06:05:14 PDT
Comment on
attachment 111003
[details]
Rebase on top of trunk Thank you so much for the review, this is the last remaining big DRT-related patch that needs to go in :) View in context:
https://bugs.webkit.org/attachment.cgi?id=111003&action=review
>> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:150 >> +int DumpRenderTreeSupportEfl::numberOfPages(const Evas_Object* ewkFrame, float pageWidth, float pageHeight) > > maybe this should just return unsigned?
PrintContext::numberOfPages returns an int.
>> Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp:160 >> +int DumpRenderTreeSupportEfl::numberOfPagesForElementId(const Evas_Object* ewkFrame, const char* elementId, float pageWidth, float pageHeight) > > here as well
So does PrintContext::pageNumberForElement.
Raphael Kubo da Costa (:rakuco)
Comment 12
2011-10-14 06:07:37 PDT
Created
attachment 111006
[details]
Fifth time is a charm. Follow Kenneth's suggestions.
WebKit Review Bot
Comment 13
2011-10-14 07:42:39 PDT
Comment on
attachment 111006
[details]
Fifth time is a charm. Follow Kenneth's suggestions. Clearing flags on attachment: 111006 Committed
r97464
: <
http://trac.webkit.org/changeset/97464
>
WebKit Review Bot
Comment 14
2011-10-14 07:42:45 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug