WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
65760
CSSSelector::selectorText should use StringBuilder instead of +=
https://bugs.webkit.org/show_bug.cgi?id=65760
Summary
CSSSelector::selectorText should use StringBuilder instead of +=
Oliver Varga
Reported
2011-08-05 02:14:13 PDT
http://www.mail-archive.com/webkit-dev@lists.webkit.org/msg16022.html
Attachments
Patch
(13.54 KB, patch)
2011-08-29 23:09 PDT
,
Shinya Kawanaka
morrita
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Shinya Kawanaka
Comment 1
2011-08-29 23:09:36 PDT
Created
attachment 105583
[details]
Patch
Hajime Morrita
Comment 2
2011-10-02 22:25:04 PDT
Comment on
attachment 105583
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105583&action=review
> Source/WebCore/css/CSSSelector.cpp:629 > if (CSSSelector* tagHistory = cs->tagHistory()) {
How about just to return and eliminate temporal "str" ? Also, you can do early return by checking tagHistory != NULL.
Hajime Morrita
Comment 3
2011-10-02 22:27:13 PDT
Anyway, is it possible to eliminate whole "+" by moving the last block to the head of the function?
Renata Hodovan
Comment 4
2012-11-18 02:09:05 PST
It's already fixed in
r126967
;
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