Chetan Kothari - 2014-09-08

I am using JStyle parser in a project where I need to do some analysis on the Dom to the which the style is attached, but I don't want to assign the style to it so we have DirectAnalyzer for that.

I want to get the inherited style of an element and I am currently using the following method

I have the node element and the style for the dom
I get the NodeData from DirectAnalyzer
There are some style properties which are inherited from the parent
I am getting the NodeData of the current elements parent node recursively
Passing Parent's NodeData to the NodeData of the current element in the inheritFrom method
And finally calling the concretize method on the current method

This works but I is very slow even for small documents

I was wondering if there is a better way of doing the same.