performCompleteStyleAttr(element);
}
// Stage 2: Compute the 'specified' set of values.
// Find all explicitly inherited styles and add them from the parent.
final CSSInheritValue inheritInstance = CSSInheritValue.getInstance();
if (parent == null)
{
for (int i = 0; i < keys.length; i++)
{
final StyleKey key = keys[i];
final Object value = style.getValue(key);
if (inheritInstance.equals(value))
{
style.setValue(key, initialStyle.getValue(key));
}
}
}
else
{
final LayoutStyle parentStyle = parent.getLayoutStyle();
for (int i = 0; i < keys.length; i++)
{
final StyleKey key = keys[i];
final Object value = style.getValue(key);
if (inheritInstance.equals(value))
{
final CSSValue parentValue = parentStyle.getValue(key);
if (parentValue == null)
{
style.setValue(key, initialStyle.getValue(key));