DescriptionImprove a search logic to find a SVGFontFaceSrcElement
In SVGFontFaceElement::rebuildFontFace(), it tries to find a SVGFontFaceSrcElement. However, current search logic looks inefficient. The search logic starts to find SVGFontFaceSrcElement from a first child node, then it replaces a discovered element whenever finding next SVGFontFaceSrcElement. Thus, it would be good if we find SVGFontFaceSrcElement from a last node. Then, we go out of the searching loop as soon as we find a first SVGFontFaceSrcElement. It will help to reduce iteration number in the search loop.
Additionally the search loop is moved to the place which uses a SVGFontFaceSrcElement actually.
BUG=N/A
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164881
Patch Set 1 #
Total comments: 5
Patch Set 2 : #Messages
Total messages: 7 (0 generated)
|