void SVGUseElement::attach() { SVGStyledTransformableElement::attach(); if (renderer()) queuePostAttachCallback(updateFromElementCallback, this); }
void ContainerNode::scheduleSetNeedsStyleRecalc(StyleChangeType changeType) { if (postAttachCallbacksAreSuspended()) queuePostAttachCallback(needsStyleRecalcCallback, this, static_cast<unsigned>(changeType)); else setNeedsStyleRecalc(changeType); }
void HTMLFormControlElement::recalcStyle(StyleChange change) { HTMLElement::recalcStyle(change); // updateFromElement() can cause the selection to change, and in turn // trigger synchronous layout, so it must not be called during style recalc. if (renderer()) queuePostAttachCallback(updateFromElementCallback, this); }
void HTMLPlugInImageElement::attach() { bool isImage = isImageType(); if (!isImage) queuePostAttachCallback(&HTMLPlugInImageElement::updateWidgetCallback, this); HTMLPlugInElement::attach(); if (isImage && renderer() && !useFallbackContent()) { if (!m_imageLoader) m_imageLoader = adoptPtr(new HTMLImageLoader(this)); m_imageLoader->updateFromElement(); } }
void HTMLFormControlElement::attach() { ASSERT(!attached()); suspendPostAttachCallbacks(); HTMLElement::attach(); // The call to updateFromElement() needs to go after the call through // to the base class's attach() because that can sometimes do a close // on the renderer. if (renderer()) renderer()->updateFromElement(); if (shouldAutofocus(this)) { ref(); queuePostAttachCallback(focusPostAttach, this); } resumePostAttachCallbacks(); }