Changeset 295200 in webkit for trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
- Timestamp:
- Jun 3, 2022, 2:54:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r295049 r295200 2896 2896 style = computeRenderStyleForProperty(*styledElement, m_pseudoElementSpecifier, propertyID, ownedStyle, styledRenderer()); 2897 2897 2898 // FIXME: Some of these cases could be narrowed down or optimized better. 2899 forceFullLayout = isLayoutDependent(propertyID, style, styledRenderer()) 2900 || styledElement->isInShadowTree() 2901 || (document.styleScope().resolverIfExists() && document.styleScope().resolverIfExists()->hasViewportDependentMediaQueries() && document.ownerElement()); 2898 forceFullLayout = [&] { 2899 // FIXME: Some of these cases could be narrowed down or optimized better. 2900 if (isLayoutDependent(propertyID, style, styledRenderer())) 2901 return true; 2902 // FIXME: Why? 2903 if (styledElement->isInShadowTree()) 2904 return true; 2905 if (!document.ownerElement()) 2906 return false; 2907 if (!document.styleScope().resolverIfExists()) 2908 return false; 2909 auto& ruleSets = document.styleScope().resolverIfExists()->ruleSets(); 2910 return ruleSets.hasViewportDependentMediaQueries() || ruleSets.hasContainerQueries(); 2911 }(); 2902 2912 2903 2913 if (forceFullLayout)
Note:
See TracChangeset
for help on using the changeset viewer.