Changeset 259031 in webkit
- Timestamp:
- Mar 25, 2020, 9:28:40 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r259027 r259031 1 2020-03-25 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 [ macOS ] svg/custom/textPath-change-id-pattern.svg is flakey failing 4 https://bugs.webkit.org/show_bug.cgi?id=208532 5 6 Reviewed by Darin Adler. 7 8 * platform/mac-wk1/TestExpectations: 9 1 10 2020-03-25 Jack Lee <shihchieh_lee@apple.com> 2 11 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r259009 r259031 944 944 webkit.org/b/209480 [ Debug ] webgl/2.0.0/conformance/attribs/gl-vertexattribpointer.html [ Pass Timeout ] 945 945 946 webkit.org/b/208532 svg/custom/textPath-change-id-pattern.svg [ Pass Failure ]947 948 946 webkit.org/b/208825 [ Debug ] inspector/script-profiler/event-type-Microtask.html [ Pass Failure ] 949 947 -
trunk/Source/WebCore/ChangeLog
r259027 r259031 1 2020-03-25 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 [ macOS ] svg/custom/textPath-change-id-pattern.svg is flakey failing 4 https://bugs.webkit.org/show_bug.cgi?id=208532 5 6 Reviewed by Darin Adler. 7 8 In this layout test, the id of a <path> element changes. This <path> is 9 referenced by a <textPath> element which is a child of a <pattern> element. 10 The <pattern> element is used to fill a <rect> element. 11 12 This patch ensures all clients (<rect>) of the resource ancestor (<pattern>) 13 of any sub-resource (<textPath>) is marked for repaint when the id of a 14 sub-sub-resource (<path>) changes. 15 16 * rendering/svg/RenderSVGResourceContainer.cpp: 17 (WebCore::RenderSVGResourceContainer::markAllClientsForRepaint): 18 * rendering/svg/RenderSVGResourceContainer.h: 19 * svg/SVGElement.cpp: 20 (WebCore::SVGElement::buildPendingResourcesIfNeeded): 21 (WebCore::SVGElement::invalidateInstances): 22 Unrelated change. This is a leftover from r179807 which was converting a 23 "do { } while();" statement to "while() { }" statement. 24 1 25 2020-03-25 Jack Lee <shihchieh_lee@apple.com> 2 26 -
trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp
r258278 r259031 91 91 } 92 92 93 void RenderSVGResourceContainer::markAllClientsForRepaint() 94 { 95 markAllClientsForInvalidation(RepaintInvalidation); 96 } 97 93 98 void RenderSVGResourceContainer::markAllClientsForInvalidation(InvalidationMode mode) 94 99 { -
trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.h
r246490 r259031 43 43 44 44 void idChanged(); 45 void markAllClientsForRepaint(); 45 46 void addClientRenderLayer(RenderLayer*); 46 47 void removeClientRenderLayer(RenderLayer*); -
trunk/Source/WebCore/svg/SVGElement.cpp
r258464 r259031 35 35 #include "HTMLNames.h" 36 36 #include "HTMLParserIdioms.h" 37 #include "RenderAncestorIterator.h" 37 38 #include "RenderSVGResourceFilter.h" 38 39 #include "RenderSVGResourceMasker.h" … … 868 869 if (clientElement->hasPendingResources()) { 869 870 clientElement->buildPendingResource(); 871 if (auto renderer = clientElement->renderer()) { 872 for (auto& ancestor : ancestorsOfType<RenderSVGResourceContainer>(*renderer)) 873 ancestor.markAllClientsForRepaint(); 874 } 870 875 extensions.clearHasPendingResourcesIfPossible(*clientElement); 871 876 } … … 947 952 useElement->invalidateShadowTree(); 948 953 instance->setCorrespondingElement(nullptr); 949 } while (!instances.isEmpty());950 } 951 952 } 954 } 955 } 956 957 }
Note:
See TracChangeset
for help on using the changeset viewer.