Summary: | Use is<>() / downcast<>() for list-related render objects | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
Component: | Layout and Rendering | Assignee: | Chris Dumez <cdumez> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | benjamin, commit-queue, darin, kling, mihnea | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | 137424 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Chris Dumez
2014-10-15 19:15:41 PDT
Created attachment 239917 [details]
Patch
Comment on attachment 239917 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=239917&action=review > Source/WebCore/html/HTMLLIElement.cpp:97 > while (!listNode) { This loop is so weird. I would prefer a while(true)+break or a do-while. > Source/WebCore/rendering/RenderListItem.cpp:155 > + Node* otherList = enclosingList(downcast<RenderListItem>(renderer)); Node->Element Created attachment 239927 [details]
Patch
Comment on attachment 239927 [details] Patch Clearing flags on attachment: 239927 Committed r174759: <http://trac.webkit.org/changeset/174759> All reviewed patches have been landed. Closing bug. |