Exemple #1
0
void InlineCSSStyleDeclaration::setNeedsStyleRecalc()
{
    if (!m_parentElement)
        return;
    m_parentElement->setNeedsStyleRecalc(InlineStyleChange);
    m_parentElement->invalidateStyleAttribute();
    StyleAttributeMutationScope(this).didInvalidateStyleAttr();
    return;
}
void InlineCSSStyleDeclaration::didMutate(MutationType type)
{
    if (type == NoChanges)
        return;

    m_cssomCSSValueClones = nullptr;

    if (!m_parentElement)
        return;

    m_parentElement->invalidateStyleAttribute();
    StyleAttributeMutationScope(this).didInvalidateStyleAttr();
}
void InlineCSSStyleDeclaration::didMutate(MutationType type)
{
    if (type == NoChanges)
        return;

    m_cssomCSSValueClones.clear();

    if (!m_parentElement)
        return;
    m_parentElement->setNeedsStyleRecalc(InlineStyleChange);
    m_parentElement->invalidateStyleAttribute();
    StyleAttributeMutationScope(this).didInvalidateStyleAttr();
}
Exemple #4
0
void InlineCSSStyleDeclaration::didMutate(MutationType type) {
  if (type == NoChanges)
    return;

  if (!m_parentElement)
    return;

  m_parentElement->clearMutableInlineStyleIfEmpty();
  m_parentElement->setNeedsStyleRecalc(
      LocalStyleChange, StyleChangeReasonForTracing::create(
                            StyleChangeReason::InlineCSSStyleMutated));
  m_parentElement->invalidateStyleAttribute();
  StyleAttributeMutationScope(this).didInvalidateStyleAttr();
}