protected function fixUrls($cssBlocks, $originalFile) {
        foreach ($cssBlocks as $cssBlock) {
            if ($cssBlock instanceof Import) {
                $this->fixUrls($cssBlock->atRuleArgs(), $originalFile);
            } else {
                if (! $cssBlock instanceof URL) {
                    continue;
                }

                $originalUrl = $cssBlock->getURL()->getString();
                $url = $this->relativeToAbsolute($originalUrl, $originalFile);
                $cssBlock->getURL()->setString($url);
            }
        }
    }
protected function fixUrls($cssBlocks, $originalFile) {
        foreach ($cssBlocks as $cssBlock) {
            if ($cssBlock instanceof Import) {
                $this->fixUrls($cssBlock->atRuleArgs(), $originalFile);
            } else {
                if (! $cssBlock instanceof URL) {
                    continue;
                }

                $originalUrl = $cssBlock->getURL()->getString();
                $url = $this->relativeToAbsolute($originalUrl, $originalFile);
                $cssBlock->getURL()->setString($url);
            }
        }
    }
protected function fixUrls ( $ cssBlocks , $ originalFile ) { foreach ( $ cssBlocks as $ cssBlock ) { if ( $ cssBlock instanceof Import ) { $ this -> fixUrls ( $ cssBlock -> atRuleArgs ( ) , $ originalFile ) ; } else { if ( ! $ cssBlock instanceof URL ) { continue ; } $ originalUrl = $ cssBlock -> getURL ( ) -> getString ( ) ; $ url = $ this -> relativeToAbsolute ( $ originalUrl , $ originalFile ) ; $ cssBlock -> getURL ( ) -> setString ( $ url ) ; } } }
Recursively go through the CSS Blocks and update relative links to absolute

@param $cssBlocks
@param $originalFile
@throws CompilationException
Recursively go through the CSS Blocks and update relative links to absolute