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+
Kent Tamura
Comment 1 2012-10-02 21:05:28 PDT
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
Note You need to log in before you can comment on or make changes to this bug.