Fix :first-letter pseudo element to inherit correctly
The :first-letter pseudo element may not be a child of the element in style/box tree. For example: <div><span>text</span></div> creates: <div> <span> <div:first-letter>t</div:first-letter> ext </span> </div> FirstLetterPseudoElement computes this correctly on creation, but inherited from <div> on RecalcStyle(). This patch fixes the inheritance on RecalcStyle() too. Inline layout code assumes that a text box has the same style as its parent inline box. The incorrect style on FirstLetterPseudoElement breaks this assumption. Bug: 450002, 507757, 739800 Change-Id: Icda675f5ffbb705c4b87f9d23cca34f24c4763ee Reviewed-on: https://chromium-review.googlesource.com/593067Reviewed-by:Emil A Eklund <eae@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#490692}
Showing
Please register or sign in to comment