Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
getComputedStyle returns incorrect values for the width and height of…
… pseudo-elements https://bugs.webkit.org/show_bug.cgi?id=37835 Reviewed by Tony Chang. Source/WebCore: In case we are querying the computed style of an element with a pseudo-element we can't use the renderer of the element as this one is not the one used to render the pseudo-element. We need to use the one created to render the pseudo-element. No new tests : Extend the existing getComputedStyle-with-pseudo-element. * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): LayoutTests: Extend existing test to cover the bug. * fast/css/getComputedStyle/getComputedStyle-with-pseudo-element-expected.txt: * fast/css/getComputedStyle/getComputedStyle-with-pseudo-element.html: Canonical link: https://commits.webkit.org/97599@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Alexis Menard
committed
Mar 6, 2012
1 parent
9156cd6
commit 50c254c
Showing
5 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters