DescriptionDrop assert for degenerate cases in FloatRoundedRect::radiusCenterRect()
This method is only used by BoxClipper, to provide a conservative
estimate of a rectangle enclosed by the rounded (inner) rectangle.
Since it's unproblematic to provide a conservative estimate for the
"degenerate" cases [1], do that instead of asserting.
Reformulate the implementation using FloatRectOutsets. The only
functional change is that there no longer is an implicit conversion
from float to int.
[1] As defined by isRenderable().
BUG=458505, 477826
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195299
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|