RenderDetailsMarker should draw the triangle inside the content box
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 00:57:30 +0000 (00:57 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 00:57:30 +0000 (00:57 +0000)
commitf4bd482f561c37c7419a310b4a310f51a549b970
treeb483981308dad1fd2e603ab57037b2c2d56dcd87
parentc5ee2497b59bf485b94feb3700b3df50c04ec715
RenderDetailsMarker should draw the triangle inside the content box
https://bugs.webkit.org/show_bug.cgi?id=84557

Reviewed by Hajime Morita.

Source/WebCore:

RenderDetailsMarker didn't support cases in which a marker has
borders and/or padings, or non-square size.

Test: fast/html/details-marker-style.html

* rendering/RenderDetailsMarker.cpp:
(WebCore::RenderDetailsMarker::getPath):
Scale by contentWidth() and contentHeight().
(WebCore::RenderDetailsMarker::paint):
Move the trianle origin by the ammount of left/top borders and paddings.

LayoutTests:

* fast/html/details-marker-style.html: Added.
* platform/mac-snowleopard/fast/html/details-marker-style-expected.png: Added.
* platform/mac-snowleopard/fast/html/details-marker-style-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/html/details-marker-style.html [new file with mode: 0644]
LayoutTests/platform/mac-snowleopard/fast/html/details-marker-style-expected.png [new file with mode: 0644]
LayoutTests/platform/mac-snowleopard/fast/html/details-marker-style-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderDetailsMarker.cpp