Tidy up FEImage
* Const qualify referenced objects (SVGPreserveAspectRatio, TreeScope). * Have ReferencedLayoutObject() return a const LayoutObject. * Rearrange the code in FEImage::MapInputs() and CreateImageFilter() to get the same general structure (element reference, external image, failure). * Reorder PaintRecord recording in CreateImageFilterForLayoutObject(). * Mark local helper MakeMapBetweenRects() static. Split out "magic viewport"-mapping into a helper function. * Use DynamicTo<>() where applicable. Change-Id: If9fe1cf076257cd680c05bb1c97e14ab2fe7c1c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2110013 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#751974}
Showing
Please register or sign in to comment