• dpapad's avatar
    WebUI Polymer 2: Don't include dir-mixin.html in the final bundle. · 9d00b88f
    dpapad authored
    Locally modify Polymer 2 to exclude dir-mixin.html, since it is unnecessary
    currently (we don't directly* use any :dir() CSS rules), and also causes a
    performance regression (more notice-able in chrome://md-user-manager), due to a
    Regex running over a fairly large amount of text (because of inlined PNG background
    images).
    
    *The only usage of :dir() was in paper-input-container.html, which is still used
    by ChromeOS <gaia-input> element. Modified <paper-input-container> to directly
    use :host-context instead. Also :dir() is not implemented in Chrome, so we should
    not be using it in our own code anyway.
    
    Ideally the usage of this mixin should be exposed as a Polymer option, so that
    we don't need to manually modify our local Polymer 2 copy.
    
    Bug: 899603
    Change-Id: Ia20535fb2adb2c9a6bebf3046e4405a4ca31af6c
    Reviewed-on: https://chromium-review.googlesource.com/c/1306515Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
    Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604759}
    9d00b88f
README.chromium 2.79 KB