instead of collecting to Vectors.
Created attachment 214095 [details] patch
Comment on attachment 214095 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=214095&action=review > Source/WebCore/ChangeLog:8 > + No new tests (OOPS!). OOPS! > Source/WebCore/dom/Range.cpp:1944 > + Vector<FloatQuad> textQuads = renderText.absoluteQuadsForRange(startOffset, endOffset); Could use auto for this. > Source/WebCore/dom/Range.cpp:1947 > quads.appendVector(textQuads); Sidenote: I wonder if an appendVector(Vector&&) would be a useful optimization. > Source/WebCore/rendering/RenderText.cpp:261 > void RenderText::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumulatedOffset) const I wish this method were called collectAbsoluteRects() or something like that. Same whine for the other similarly named ones.
https://trac.webkit.org/r157366