Bug 562801

Summary: [CSS] ViewCSSImpl#getComputedStyle: Cache node hierarchy
Product: [Eclipse Project] Platform Reporter: Karsten Thoms <karsten.thoms>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel
Version: 4.16   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/162014
https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/162014
Whiteboard:

Description Karsten Thoms CLA 2020-05-04 19:40:20 EDT
This is a follow-up of bug#562127.

With the previous change the style computation in getComputedStyle() got improved. For this a node's hierarchy is computed which gets passed into the selector matching.

The hierarchy is computed on an element's parent, if present. Due to the fact that several nodes share the same parent, the hierarchy for the parent node will be the same. This makes it a caching candidate.
Comment 1 Eclipse Genie CLA 2020-05-04 19:48:36 EDT
New Gerrit change created: https://git.eclipse.org/r/162014