WordPress at a glance
function is not described

Pelago

Emogrifier::fillStyleAttributesWithMergedStyles() private WC 1.0

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

{} It's a method of the class: Emogrifier{}

No Hooks.

Return

null.

Usage

// private - for code of main (parent) class only
$result = $this->fillStyleAttributesWithMergedStyles();

Code of Emogrifier::fillStyleAttributesWithMergedStyles() WC 5.0.0

<?php
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
            )
        );
    }
}