private function fillStyleAttributesWithMergedStyles()
    {
        foreach ($this->styleAttributesForNodes as $nodePath => $styleAttributesForNode) {
            $node = $this->visitedNodes[$nodePath];
            $currentStyleAttributes = $this->parseCssDeclarationsBlock($node->getAttribute('style'));
            $node->setAttribute(
                'style',
                $this->generateStyleStringFromDeclarationsArrays(
                    $currentStyleAttributes,
                    $styleAttributesForNode
                )
            );
        }
    }
private function fillStyleAttributesWithMergedStyles()
    {
        foreach ($this->styleAttributesForNodes as $nodePath => $styleAttributesForNode) {
            $node = $this->visitedNodes[$nodePath];
            $currentStyleAttributes = $this->parseCssDeclarationsBlock($node->getAttribute('style'));
            $node->setAttribute(
                'style',
                $this->generateStyleStringFromDeclarationsArrays(
                    $currentStyleAttributes,
                    $styleAttributesForNode
                )
            );
        }
    }
private function fillStyleAttributesWithMergedStyles ( ) { foreach ( $ this -> styleAttributesForNodes as $ nodePath => $ styleAttributesForNode ) { $ node = $ this -> visitedNodes [ $ nodePath ] ; $ currentStyleAttributes = $ this -> parseCssDeclarationsBlock ( $ node -> getAttribute ( 'style' ) ) ; $ node -> setAttribute ( 'style' , $ this -> generateStyleStringFromDeclarationsArrays ( $ currentStyleAttributes , $ styleAttributesForNode ) ) ; } }
Merges styles from styles attributes and style nodes and applies them to the attribute nodes

@return void
Merges styles from styles attributes and style nodes and applies them to the attribute nodes