| Summary: | Avoid synchronous style recalc when mutating a Node inside FrameSelection. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
| Component: | HTML Editing | Assignee: | Andreas Kling <kling> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | darin, kling, koivisto | ||||
| Priority: | P2 | Keywords: | Performance | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Andreas Kling
2014-11-16 23:59:03 PST
Created attachment 241696 [details]
Patch idea
Comment on attachment 241696 [details] Patch idea View in context: https://bugs.webkit.org/attachment.cgi?id=241696&action=review > Source/WebCore/editing/FrameSelection.cpp:-485 > + if (RenderView* renderView = node.document().renderView()) { > + renderView->clearSelection(); > > - // Trigger a selection update so the selection will be set again. > - if (auto* renderView = node.document().renderView()) { why auto* -> RenderView*? Committed r176201: <http://trac.webkit.org/changeset/176201> |