DescriptionSimplify BackgroundImageGeometry by removing meaningless distinctions.
m_destOrigin is only set at the very end of
BoxPainter::calculateBackgroundImageGeometry, and then always to
destRect().location(). m_destRect is not changed after this point.
m_destOrigin is only read in relativePhase(), which is only called after the
end of calculateBackgroundGeometry.
As a result, relativePhase() always returns m_phase, and we should be able to
safely remove both relativePhase and destOrigin. It's not entirely clear to me
what these were supposed to do, but at the moment they do nothing.
TEST=LayoutTests
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183771
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|