WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98228
Refactoring: DateTimeEditBuilder had better hold LayoutParameters
https://bugs.webkit.org/show_bug.cgi?id=98228
Summary
Refactoring: DateTimeEditBuilder had better hold LayoutParameters
Kent Tamura
Reported
2012-10-02 20:51:12 PDT
Refactoring: DateTimeEditBuilder had better hold LayoutParameters
Attachments
Patch
(7.29 KB, patch)
2012-10-02 21:05 PDT
,
Kent Tamura
haraken
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2012-10-02 21:05:28 PDT
Created
attachment 166803
[details]
Patch
Kentaro Hara
Comment 2
2012-10-02 21:11:31 PDT
Comment on
attachment 166803
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=166803&action=review
Looks OK.
> Source/WebCore/ChangeLog:9 > + constructor. This change improves code size and runtime cost.
This change increases the size of a DateTimeEditBuilder object. I don't think this is a big deal, but please just keep it in mind: Before: const StepRange m_stepRange; Localizer& m_localizer; const String m_placeholderForDay; const String m_placeholderForMonth; const String m_placeholderForYear; After: String dateTimeFormat; String fallbackDateTimeFormat; Localizer& localizer; const StepRange stepRange; String placeholderForMonth; String placeholderForYear;
> Source/WebCore/ChangeLog:19 > + Add m_parmaeters.
Typo: m_parmaeters
Kent Tamura
Comment 3
2012-10-02 21:18:13 PDT
Comment on
attachment 166803
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=166803&action=review
>> Source/WebCore/ChangeLog:9 >> + constructor. This change improves code size and runtime cost. > > This change increases the size of a DateTimeEditBuilder object. I don't think this is a big deal, but please just keep it in mind: > > Before: > const StepRange m_stepRange; > Localizer& m_localizer; > const String m_placeholderForDay; > const String m_placeholderForMonth; > const String m_placeholderForYear; > > After: > String dateTimeFormat; > String fallbackDateTimeFormat; > Localizer& localizer; > const StepRange stepRange; > String placeholderForMonth; > String placeholderForYear;
No. m_parameters is a const reference, which is equivalent to one pointer internally.
>> Source/WebCore/ChangeLog:19 >> + Add m_parmaeters. > > Typo: m_parmaeters
oops. will fix.
Kentaro Hara
Comment 4
2012-10-02 21:19:27 PDT
(In reply to
comment #3
)
> (From update of
attachment 166803
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=166803&action=review
> > No. m_parameters is a const reference, which is equivalent to one pointer internally.
Ah, got it.
Kent Tamura
Comment 5
2012-10-02 21:30:24 PDT
Committed
r130246
: <
http://trac.webkit.org/changeset/130246
>
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