Bug 115042 - Avoid computing style twice when element has no existing style
Summary: Avoid computing style twice when element has no existing style
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 111627
  Show dependency treegraph
 
Reported: 2013-04-23 08:13 PDT by Antti Koivisto
Modified: 2013-04-23 09:24 PDT (History)
4 users (show)

See Also:


Attachments
patch (4.23 KB, patch)
2013-04-23 08:28 PDT, Antti Koivisto
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2013-04-23 08:13:28 PDT
Element::recalcStyle can be more efficient.
Comment 1 Antti Koivisto 2013-04-23 08:28:21 PDT
Created attachment 199243 [details]
patch
Comment 2 Andreas Kling 2013-04-23 08:36:18 PDT
Comment on attachment 199243 [details]
patch

Nice catch! r=me
Comment 3 Antti Koivisto 2013-04-23 09:12:26 PDT
http://trac.webkit.org/changeset/148970