• Kent Tamura's avatar
    ValidationBubbleInRenderer: Adjust bubble arrow position. · 91f7d6cc
    Kent Tamura authored
    This CL includes RTL support.
    
    * If the UI locale is RTL, flip the bubble layout.
     - The default arrow position is on the right side.
     - The icon is on the right side.
    
    * If the default position of the bubble arrow doesn't point at the anchor
      element rectangle, move the arrow position.
    
    Implementation:
    - Set <body dir=> for the UI locale.
    
    - Found that it's difficult to adjust arrow position in RTL +
      position:relative. Switch inner arrow's position to 'absolute', and add spacer
      elements to secure height.
    
    - Fix the icon margin in RTL.
    
    - Drop layout tree dump from tests.
    
    Bug: 739091
    Change-Id: I3da7f9ed3a248d1bf5a95d77d3b93667e3bdf9da
    Reviewed-on: https://chromium-review.googlesource.com/561048Reviewed-by: default avatarKeishi Hattori <keishi@chromium.org>
    Commit-Queue: Kent Tamura <tkent@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#485002}
    91f7d6cc