| Summary: | Minimize virtual function calls in MarkupAccumulator | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | benjamin, commit-queue, rniwa | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2014-09-19 11:37:40 PDT
Created attachment 238380 [details]
Patch
Comment on attachment 238380 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=238380&action=review > Source/WebCore/page/PageSerializer.cpp:109 > - virtual void appendEndTag(const Node&) override; > + virtual void appendEndTag(const Element&) override; Instead of adding isElementNode() everywhere, you could have: inline void appendEndTag(Node& node) { if (node.isElementNode()) appendEndTag(toElement(node)); } Created attachment 238396 [details]
Patch
Comment on attachment 238396 [details] Patch Clearing flags on attachment: 238396 Committed r173783: <http://trac.webkit.org/changeset/173783> All reviewed patches have been landed. Closing bug. |