ResourceLoaderFileModule::readStyleFile() both reads a style file from disk and processes it through LESS, CSSJanus and CSSMin. Factor out the processing part into ResourceLoaderFileModule::processStyle(), which takes a string of unprocessed CSS/LESS rather than a file. This is needed for future support for styles that don't come (directly) from a file, but are generated through packageFiles. Other changes: - Use a hash of the source instead of the file name in the cache keys for the LESS compilation output - Also prefix the cache key with 'resourceloader' while we're changing it anyway - LESS compilation no longer adds the source file itself as a dependency - Don't pass down $flip, just use $this>getFlip() Change-Id: I86e880d06af724f0fbae93e042c85e0395771912 |
||
|---|---|---|
| .. | ||
| ApiPrefixUniquenessTest.php | ||
| ApiStructureTest.php | ||
| AutoLoaderStructureTest.php | ||
| AvailableRightsTest.php | ||
| ContentHandlerSanityTest.php | ||
| DatabaseIntegrationTest.php | ||
| ExtensionJsonValidationTest.php | ||
| PasswordPolicyStructureTest.php | ||
| ResourcesTest.php | ||
| RestStructureTest.php | ||
| SpecialPageFatalTest.php | ||
| StructureTest.php | ||