void HTMLDialogElement::show() { if (fastHasAttribute(openAttr)) return; setBooleanAttribute(openAttr, true); // The layout must be updated here because setFocusForDialog calls // Element::isFocusable, which requires an up-to-date layout. document().updateLayoutIgnorePendingStylesheets(); setFocusForDialog(this); }
void HTMLDialogElement::closeDialog(const String& returnValue) { if (!fastHasAttribute(openAttr)) return; setBooleanAttribute(openAttr, false); HTMLDialogElement* activeModalDialog = document().activeModalDialog(); document().removeFromTopLayer(this); if (activeModalDialog == this) inertSubtreesChanged(document()); if (!returnValue.isNull()) m_returnValue = returnValue; dispatchScopedEvent(Event::create(EventTypeNames::close)); }
void HTMLDialogElement::showModal(ExceptionState& exceptionState) { if (fastHasAttribute(openAttr)) { exceptionState.throwDOMException(InvalidStateError, "The element already has an 'open' attribute, and therefore cannot be opened modally."); return; } if (!inShadowIncludingDocument()) { exceptionState.throwDOMException(InvalidStateError, "The element is not in a Document."); return; } document().addToTopLayer(this); setBooleanAttribute(openAttr, true); // Throw away the AX cache first, so the subsequent steps don't have a chance of queuing up // AX events on objects that would be invalidated when the cache is thrown away. inertSubtreesChanged(document()); forceLayoutForCentering(); setFocusForDialog(this); }
void ManifestTool::setUseUnicodeResponseFiles(bool enable) { setBooleanAttribute("UseUnicodeResponseFiles", enable, useUnicodeResponseFilesDefault()); }
void ManifestTool::setVerboseOutput(bool enable) { setBooleanAttribute("VerboseOutput", enable, verboseOutputDefault()); }
void ManifestTool::setSuppressStartupBanner(bool suppress) { setBooleanAttribute("SuppressStartupBanner", suppress, suppressStartupBannerDefault()); }
void ManifestTool::setUpdateFileHashes(bool update) { setBooleanAttribute("UpdateFileHashes", update, updateFileHashesDefault()); }
void ManifestTool::setGenerateCatalogFiles(bool generate) { setBooleanAttribute("GenerateCatalogFiles", generate, generateCatalogFilesDefault()); }
void ManifestTool::setEmbedManifest(bool enable) { setBooleanAttribute("EmbedManifest", enable, embedManifestDefault()); }
void ManifestTool::setUseFAT32Workaround(bool enable) { setBooleanAttribute("UseFAT32Workaround", enable, useFAT32WorkaroundDefault()); }
void BrowseInformationTool::setSuppressStartupBanner(bool suppress) { setBooleanAttribute("SuppressStartupBanner", suppress, suppressStartupBannerDefault()); }
void PostBuildEventTool::setExcludedFromBuild(bool excludedFromBuild) { setBooleanAttribute("ExcludedFromBuild", excludedFromBuild, excludedFromBuildDefault()); }
void HTMLDialogElement::show() { if (fastHasAttribute(openAttr)) return; setBooleanAttribute(openAttr, true); }