[Webkit-unassigned] [Bug 89879] New: StyleResolver does to much and needs refactoring
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 25 08:13:08 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=89879
Summary: StyleResolver does to much and needs refactoring
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: koivisto at iki.fi, jchaffraix at webkit.org,
simon.fraser at apple.com, kling at webkit.org,
macpherson at chromium.org
StyleResolver does to much and needs refactoring
In my opinion, at least the following should be split out of StyleResolver/StyleResolver.cpp
- element/styledElement (resolve lifetime - per-element/per-resolve state)
- style mapping functions (static - map*, which are mostly used to support StyleBuilder)
- Features object (document/stylesheet lifetime - probably just needs its own file)
- style sharing logic (static)
- default style-sheet statics (static)
The largest problem is the storage of both document (or at least between-document-changes), as well as during-resolve helper cache objects (very similar to how PaintInfo or LayoutState function during paint and layout phases).
I would like to rip out the "ResolveState" (during-resolve cache) object first, but that's going to be tricky, so I'm pulling off some of these other smaller objects first.
I'll file bugs for each, and I welcome your thoughts and comments.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list