DescriptionRewrite nine piece image painting code
Introduce a NinePieceImageGrid class responsible for computing the
nine piece image drawing information. The NinePieceImageGrid is
oblivious to painting details and only operates on the border image
properties (through NinePieceImage), image size and border image area.
Functionally, it shouldn't introduce any significant changes and
nothing web exposed should change at all.
Since computing drawing information is now self-contained, supply unit
tests for verifying it does the correct thing in the common and not so
common cases.
BUG=496033
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197805
Patch Set 1 #Patch Set 2 : More tests #Patch Set 3 : check-webkit-style #Patch Set 4 : Describe tests and add some polish #Patch Set 5 : Trace got lost; add it back #Patch Set 6 : Some more polish #
Total comments: 10
Patch Set 7 : Address review comments #
Messages
Total messages: 8 (3 generated)
|