DescriptionApply outline-offset on all edges (not just top/left)
In InlinePainter::paintOutlineForLine, the "outline rectangles" are
formed by expanding and shifting by outline-offset. This however only
result in an offset of the outline on the top and left sides.
Rewrite the code to use an inflate() operation instead, so that all
four edges are affected by the offset.
The spec describes the effect of the 'outline-offset' property as:
"If the computed value of outline-offset is anything other than 0,
then the outline is outset from the border edge by that amount."
"Negative values must cause the outline to shrink into the border
box."
(http://dev.w3.org/csswg/css-ui-3/#outline-offset)
This is also what ObjectPainter::paintOutline does.
This makes us match Gecko more closely rendering-wise.
TEST=fast/inline/outline-offset.html (S.P. strict cull rect)
BUG=495368
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197589
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|