WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
63519
Refactor RenderTextControl::text().
https://bugs.webkit.org/show_bug.cgi?id=63519
Summary
Refactor RenderTextControl::text().
Kent Tamura
Reported
2011-06-28 01:10:40 PDT
Refactor RenderTextControl::text().
Attachments
Patch
(6.48 KB, patch)
2011-06-28 01:15 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2011-06-28 01:15:03 PDT
Created
attachment 98878
[details]
Patch
Hajime Morrita
Comment 2
2011-06-28 01:25:44 PDT
Comment on
attachment 98878
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=98878&action=review
> Source/WebCore/rendering/RenderTextControl.cpp:337 > +static String finishText(StringBuilder& result)
Another possible idea would be introducing a small class which wraps or subclasses StringBuilder, and make it build these two types of text. This kind of out-parameter looks kind of horrible for me. What do you think?
Kent Tamura
Comment 3
2011-06-28 01:31:59 PDT
Comment on
attachment 98878
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=98878&action=review
>> Source/WebCore/rendering/RenderTextControl.cpp:337 >> +static String finishText(StringBuilder& result) > > Another possible idea would be introducing a small class > which wraps or subclasses StringBuilder, and make it build these two types of text. > This kind of out-parameter looks kind of horrible for me. > What do you think?
I feel it's overkill in this case.
Hajime Morrita
Comment 4
2011-06-28 01:40:39 PDT
Comment on
attachment 98878
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=98878&action=review
>>> Source/WebCore/rendering/RenderTextControl.cpp:337 >>> +static String finishText(StringBuilder& result) >> >> Another possible idea would be introducing a small class >> which wraps or subclasses StringBuilder, and make it build these two types of text. >> This kind of out-parameter looks kind of horrible for me. >> What do you think? > > I feel it's overkill in this case.
Okay, let's just land this.
WebKit Review Bot
Comment 5
2011-06-28 02:31:11 PDT
Comment on
attachment 98878
[details]
Patch Clearing flags on attachment: 98878 Committed
r89913
: <
http://trac.webkit.org/changeset/89913
>
WebKit Review Bot
Comment 6
2011-06-28 02:31:16 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 7
2011-06-28 16:06:16 PDT
It would be really good to have a goal of refactoring mentioned in ChangeLog. What were you trying to achieve?
Kent Tamura
Comment 8
2011-06-28 16:47:40 PDT
(In reply to
comment #7
)
> It would be really good to have a goal of refactoring mentioned in ChangeLog. What were you trying to achieve?
Thank you for pointing it out. The trigger of the change was I found text() was called twice in setInnerText(). It was obviously unnecessary. Changes for text() and finishText() are just code cleanup. I should have written such information to ChangeLog.
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