Home | History | Annotate | Download | only in resolver

Lines Matching defs:parentStyle

536     adjuster.adjustRenderStyle(state.style(), state.parentStyle(), element, state.cachedUAStyle());
575 if (sharingBehavior == AllowStyleSharing && state.parentStyle()) {
581 if (state.parentStyle()) {
583 state.style()->inheritFrom(state.parentStyle(), isAtShadowBoundary(element) ? RenderStyle::AtShadowBoundary : RenderStyle::NotAtShadowBoundary);
649 PassRefPtr<RenderStyle> StyleResolver::styleForKeyframe(Element& element, const RenderStyle& elementStyle, RenderStyle* parentStyle, const StyleKeyframe* keyframe, const AtomicString& animationName)
657 StyleResolverState state(document(), &element, parentStyle);
731 RenderStyle* parentStyle = parentRenderer->style();
732 if (RenderStyle* cachedStyle = parentStyle->getCachedPseudoStyle(pseudoId)) {
738 StyleResolverState state(document(), &parent, parentStyle);
739 if (!pseudoStyleForElementInternal(parent, pseudoId, parentStyle, state))
743 parentStyle->addCachedPseudoStyle(style);
756 bool StyleResolver::pseudoStyleForElementInternal(Element& element, const PseudoStyleRequest& pseudoStyleRequest, RenderStyle* parentStyle, StyleResolverState& state)
764 if (pseudoStyleRequest.allowsInheritance(state.parentStyle())) {
766 state.style()->inheritFrom(state.parentStyle());
816 PassRefPtr<RenderStyle> StyleResolver::pseudoStyleForElement(Element* element, const PseudoStyleRequest& pseudoStyleRequest, RenderStyle* parentStyle)
818 ASSERT(parentStyle);
822 StyleResolverState state(document(), element, parentStyle);
823 if (!pseudoStyleForElementInternal(*element, pseudoStyleRequest, parentStyle, state)) {
922 state.fontBuilder().createFont(document().styleEngine()->fontSelector(), state.parentStyle(), state.style());
980 state.setAnimationUpdate(CSSAnimations::calculateUpdate(animatingElement, *element, *state.style(), state.parentStyle(), this));
1401 if (cachedMatchedProperties && MatchedPropertiesCache::isCacheable(element, state.style(), state.parentStyle())) {
1407 if (state.parentStyle()->inheritedDataShared(cachedMatchedProperties->parentRenderStyle.get()) && !isAtShadowBoundary(element)
1472 if (!cachedMatchedProperties && cacheHash && MatchedPropertiesCache::isCacheable(element, state.style(), state.parentStyle())) {
1474 m_matchedPropertiesCache.add(state.style(), state.parentStyle(), cacheHash, matchResult);