| Summary: | Use tighter typing for Document::ownerElement() return value | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, esprehn+autocc, glenn, gyuyoung.kim, jcraig, jdiggs, kangil.han, koivisto, kondapallykalyan, mario, rniwa, samuel_white, simon.fraser | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2014-09-11 11:28:55 PDT
Created attachment 237970 [details]
Patch
Comment on attachment 237970 [details]
Patch
r=me
Comment on attachment 237970 [details] Patch Clearing flags on attachment: 237970 Committed r173528: <http://trac.webkit.org/changeset/173528> All reviewed patches have been landed. Closing bug. Comment on attachment 237970 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=237970&action=review > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1464 > + if (HTMLFrameOwnerElement* owner = document->ownerElement()) { auto* is better than HTMLFrameOwnerElement here; if we had used auto before then the code would have been closer to correct without modifying it > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1466 > + const AtomicString& title = owner->getAttribute(titleAttr); fastGetAttribute > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1477 > + if (HTMLElement* body = document->body()) I think auto* is better than HTMLElement here. Maybe some day we will have an HTMLBodyElement, and maybe it will have some special optimization for getNameAttribute. Why not be future proof in this respect? |