Bug 73612 - Upstream about: feature in WebKit/blackberry/WebCoreSupport/
Summary: Upstream about: feature in WebKit/blackberry/WebCoreSupport/
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Leo Yang
URL:
Keywords:
Depends on:
Blocks: 73144
  Show dependency treegraph
 
Reported: 2011-12-01 19:22 PST by Leo Yang
Modified: 2011-12-06 18:37 PST (History)
6 users (show)

See Also:


Attachments
Patch (44.39 KB, patch)
2011-12-01 19:26 PST, Leo Yang
eric: review-
Details | Formatted Diff | Diff
Patch v2 (47.14 KB, patch)
2011-12-04 18:23 PST, Leo Yang
no flags Details | Formatted Diff | Diff
Patch v3 (47.39 KB, patch)
2011-12-04 23:27 PST, Leo Yang
rwlbuis: review-
Details | Formatted Diff | Diff
Patch v4 (26.14 KB, patch)
2011-12-06 00:37 PST, Leo Yang
tonikitoo: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Yang 2011-12-01 19:22:17 PST
This is the BlackBerry platform specific about data.
Comment 1 Leo Yang 2011-12-01 19:26:29 PST
Created attachment 117545 [details]
Patch
Comment 2 Rob Buis 2011-12-02 06:46:56 PST
This looks good. But maybe it can be cleaned up some more, some features got removed, see for instance:

https://bugs.webkit.org/show_bug.cgi?id=68018 (ENABLE_SVG_FOREIGN_OBJECT)
Comment 3 Eric Seidel (no email) 2011-12-03 13:33:13 PST
Comment on attachment 117545 [details]
Patch

Do other ports do this?  I'm not sure this information really belongs in WebCore.  It seems like embedder-level functionality.
Comment 4 Leo Yang 2011-12-04 18:15:42 PST
Let me move to WebKit/blackberry/WebCoreSupport/
Comment 5 Leo Yang 2011-12-04 18:16:38 PST
(In reply to comment #2)
> This looks good. But maybe it can be cleaned up some more, some features got removed, see for instance:
> 
> https://bugs.webkit.org/show_bug.cgi?id=68018 (ENABLE_SVG_FOREIGN_OBJECT)

Thanks. But can I do this in a separated bug? After they are in, I'll file a bug to track up-to-date issue.
Comment 6 Leo Yang 2011-12-04 18:23:42 PST
Created attachment 117820 [details]
Patch v2
Comment 7 Antonio Gomes 2011-12-04 20:33:13 PST
(In reply to comment #5)
> (In reply to comment #2)
> > This looks good. But maybe it can be cleaned up some more, some features got removed, see for instance:
> > 
> > https://bugs.webkit.org/show_bug.cgi?id=68018 (ENABLE_SVG_FOREIGN_OBJECT)
> 
> Thanks. But can I do this in a separated bug? After they are in, I'll file a bug to track up-to-date issue.

It is hard to say, Leo. I know our last rebase is behind this macro removals/clean up, but reintroducing them does not sounds right to me.
Comment 8 Leo Yang 2011-12-04 23:27:14 PST
Created attachment 117849 [details]
Patch v3

OK. Let me up it to date.
Comment 9 Rob Buis 2011-12-05 06:55:02 PST
Comment on attachment 117849 [details]
Patch v3

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

I think another round is needed, to cleanup the code some more. Good job on figuring out what Features got dropped and added.

> Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp:2126
> +    "YARR_JIT_DEBUG");

The features seem to match now AFAICS. But looking at this repeated structure, this seems to cry out for a macro :)

> Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp:2143
> +static const int s_kilobyte = 1024;

Should use DEFINE_STATIC_LOCAL within cacheTypeStatisticToHTMLTr

> Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp:2153
> +    return tr;

Maybe does not need the temp var.
Comment 10 Leo Yang 2011-12-06 00:36:15 PST
(In reply to comment #9)
> (From update of attachment 117849 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=117849&action=review
> 
> I think another round is needed, to cleanup the code some more. Good job on figuring out what Features got dropped and added.
> 
> > Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp:2126
> > +    "YARR_JIT_DEBUG");
> 
> The features seem to match now AFAICS. But looking at this repeated structure, this seems to cry out for a macro :)
> 
C++ doesn't support pre-processing instructions in a macro. I'll use a perl script to generate code fragments.
 
> > Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp:2143
> > +static const int s_kilobyte = 1024;
> 
> Should use DEFINE_STATIC_LOCAL within cacheTypeStatisticToHTMLTr
Actually static is not needed. I'll change to const int s_kiloByte = 1024 and put it in the cacheTypeStatisticToHTMLTr.

> 
> > Source/WebKit/blackberry/WebCoreSupport/AboutData.cpp:2153
> > +    return tr;
> 
> Maybe does not need the temp var.
OK.
Comment 11 Leo Yang 2011-12-06 00:37:51 PST
Created attachment 118003 [details]
Patch v4

Using perl script to generate code fragments.
Comment 12 Leo Yang 2011-12-06 18:37:53 PST
Committed r102207: <http://trac.webkit.org/changeset/102207>