WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
122067
Add first()/last() to ElementIteratorAdapters
https://bugs.webkit.org/show_bug.cgi?id=122067
Summary
Add first()/last() to ElementIteratorAdapters
Antti Koivisto
Reported
2013-09-28 12:57:28 PDT
Add a convenient way for getting the first and last element if it exists.
Attachments
patch
(14.80 KB, patch)
2013-09-28 13:02 PDT
,
Antti Koivisto
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2013-09-28 13:02:26 PDT
Created
attachment 212906
[details]
patch
Darin Adler
Comment 2
2013-09-28 13:04:13 PDT
Comment on
attachment 212906
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=212906&action=review
> Source/WebCore/svg/SVGElement.cpp:957 > + return firstTitle ? const_cast<SVGTitleElement*>(firstTitle)->innerText() : String();
Lame that this const_cast is needed.
Antti Koivisto
Comment 3
2013-09-28 13:20:02 PDT
https://trac.webkit.org/r156612
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