enum PageOverlayType {
"view",
"document"
};
enum CachePolicy {
"UseProtocolCachePolicy",
"ReloadIgnoringCacheData",
"ReturnCacheDataElseLoad",
"ReturnCacheDataDontLoad"
};
enum ResourceLoadPriority {
"ResourceLoadPriorityVeryLow",
"ResourceLoadPriorityLow",
"ResourceLoadPriorityMedium",
"ResourceLoadPriorityHigh",
"ResourceLoadPriorityVeryHigh"
};
[Conditional=MEDIA_SESSION] enum MediaSessionInterruptingCategory {
"content",
"transient",
"transient-solo"
};
[Conditional=MEDIA_SESSION] enum MediaControlEvent {
"play-pause",
"next-track",
"previous-track"
};
enum AutoFillButtonType {
"AutoFillButtonTypeNone",
"AutoFillButtonTypeContacts",
"AutoFillButtonTypeCredentials"
};
enum UserInterfaceLayoutDirection {
"LTR",
"RTL"
};
enum BaseWritingDirection {
"Natural",
"Ltr",
"Rtl"
};
enum EventThrottlingBehavior {
"responsive",
"unresponsive"
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
NoInterfaceObject,
] interface Internals {
DOMString address(Node node);
boolean nodeNeedsStyleRecalc(Node node);
DOMString styleChangeType(Node node);
DOMString description(any value);
boolean hasPausedImageAnimations(Element element);
[MayThrowException] DOMString elementRenderTreeAsText(Element element);
boolean isPreloaded(DOMString url);
boolean isLoadingFromMemoryCache(DOMString url);
DOMString xhrResponseSource(XMLHttpRequest xhr);
boolean isSharingStyleSheetContents(HTMLLinkElement a, HTMLLinkElement b);
boolean isStyleSheetLoadingSubresources(HTMLLinkElement link);
void clearMemoryCache();
void pruneMemoryCacheToSize(long size);
long memoryCacheSize();
void setOverrideCachePolicy(CachePolicy policy);
void setOverrideResourceLoadPriority(ResourceLoadPriority priority);
void setStrictRawResourceValidationPolicyDisabled(boolean disabled);
void clearPageCache();
unsigned long pageCacheSize();
CSSStyleDeclaration computedStyleIncludingVisitedInfo(Element element);
Node ensureUserAgentShadowRoot(Element host);
Node shadowRoot(Element host);
long deferredStyleRulesCount(StyleSheet sheet);
long deferredGroupRulesCount(StyleSheet sheet);
long deferredKeyframesRulesCount(StyleSheet sheet);
[MayThrowException] DOMString shadowRootType(Node root);
DOMString shadowPseudoId(Element element);
void setShadowPseudoId(Element element, DOMString id);
Node treeScopeRootNode(Node node);
Node parentTreeScope(Node node);
[MayThrowException] unsigned long lastSpatialNavigationCandidateCount();
unsigned long numberOfActiveAnimations();
[MayThrowException] void suspendAnimations();
[MayThrowException] void resumeAnimations();
[MayThrowException] boolean animationsAreSuspended();
[MayThrowException] boolean pauseAnimationAtTimeOnElement(DOMString animationName, unrestricted double pauseTime, Element element);
[MayThrowException] boolean pauseAnimationAtTimeOnPseudoElement(DOMString animationName, unrestricted double pauseTime, Element element, DOMString pseudoId);
[MayThrowException] boolean pauseTransitionAtTimeOnElement(DOMString propertyName, unrestricted double pauseTime, Element element);
[MayThrowException] boolean pauseTransitionAtTimeOnPseudoElement(DOMString property, unrestricted double pauseTime, Element element, DOMString pseudoId);
DOMString visiblePlaceholder(Element element);
void selectColorInColorChooser(HTMLInputElement element, DOMString colorValue);
[MayThrowException] sequence<DOMString> formControlStateOfPreviousHistoryItem();
[MayThrowException] void setFormControlStateOfPreviousHistoryItem(sequence<DOMString> values);
[MayThrowException] ClientRect absoluteCaretBounds();
ClientRect boundingBox(Element element);
[MayThrowException] ClientRectList inspectorHighlightRects();
[MayThrowException] DOMString inspectorHighlightObject();
[MayThrowException] unsigned long markerCountForNode(Node node, DOMString markerType);
[MayThrowException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index);
[MayThrowException] DOMString markerDescriptionForNode(Node node, DOMString markerType, unsigned long index);
[MayThrowException] DOMString dumpMarkerRects(DOMString markerType);
void addTextMatchMarker(Range range, boolean isActive);
[MayThrowException] void setMarkedTextMatchesAreHighlighted(boolean flag);
void invalidateFontCache();
[MayThrowException] void setScrollViewPosition(long x, long y);
[MayThrowException] ClientRect layoutViewportRect();
[MayThrowException] ClientRect visualViewportRect();
[MayThrowException] void setViewBaseBackgroundColor(DOMString colorValue);
[MayThrowException] void setPagination(DOMString mode, long gap, optional long pageLength = 0);
[MayThrowException] void setPaginationLineGridEnabled(boolean enabled);
[MayThrowException] DOMString configurationForViewport(unrestricted float devicePixelRatio, long deviceWidth, long deviceHeight, long availableWidth, long availableHeight);
[MayThrowException] boolean wasLastChangeUserEdit(Element textField);
boolean elementShouldAutoComplete(HTMLInputElement inputElement);
void setEditingValue(HTMLInputElement inputElement, DOMString value);
void setAutofilled(HTMLInputElement inputElement, boolean enabled);
void setShowAutoFillButton(HTMLInputElement inputElement, AutoFillButtonType autoFillButtonType);
[MayThrowException] Range? rangeOfString(DOMString text, Range? referenceRange, sequence<DOMString> findOptions);
[MayThrowException] unsigned long countMatchesForText(DOMString text, sequence<DOMString> findOptions, DOMString markMatches);
[MayThrowException] unsigned long countFindMatches(DOMString text, sequence<DOMString> findOptions);
[MayThrowException] DOMString autofillFieldName(Element formControlElement);
[MayThrowException] void paintControlTints();
[MayThrowException] void scrollElementToRect(Element element, long x, long y, long w, long h);
Range rangeFromLocationAndLength(Element scope, long rangeLocation, long rangeLength);
unsigned long locationFromRange(Element scope, Range range);
unsigned long lengthFromRange(Element scope, Range range);
DOMString rangeAsText(Range range);
Range subrange(Range range, long rangeLocation, long rangeLength);
[MayThrowException] Range rangeForDictionaryLookupAtLocation(long x, long y);
[MayThrowException] void setDelegatesScrolling(boolean enabled);
[MayThrowException] long lastSpellCheckRequestSequence();
[MayThrowException] long lastSpellCheckProcessedSequence();
sequence<DOMString> userPreferredLanguages();
void setUserPreferredLanguages(sequence<DOMString> languages);
sequence<DOMString> userPreferredAudioCharacteristics();
void setUserPreferredAudioCharacteristic(DOMString characteristic);
[MayThrowException] unsigned long wheelEventHandlerCount();
[MayThrowException] unsigned long touchEventHandlerCount();
[MayThrowException] NodeList nodesFromRect(Document document, long x, long y,
unsigned long topPadding, unsigned long rightPadding, unsigned long bottomPadding, unsigned long leftPadding,
boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFrameContent);
DOMString parserMetaData(optional any func);
void updateEditorUINowIfScheduled();
boolean hasSpellingMarker(long from, long length);
boolean hasGrammarMarker(long from, long length);
boolean hasAutocorrectedMarker(long from, long length);
void setContinuousSpellCheckingEnabled(boolean enabled);
void setAutomaticQuoteSubstitutionEnabled(boolean enabled);
void setAutomaticLinkDetectionEnabled(boolean enabled);
void setAutomaticDashSubstitutionEnabled(boolean enabled);
void setAutomaticTextReplacementEnabled(boolean enabled);
void setAutomaticSpellingCorrectionEnabled(boolean enabled);
void handleAcceptedCandidate(DOMString candidate, unsigned long location, unsigned long length);
boolean isOverwriteModeEnabled();
void toggleOverwriteModeEnabled();
unsigned long numberOfScrollableAreas();
[MayThrowException] boolean isPageBoxVisible(long pageNumber);
unsigned long imageFrameIndex(HTMLImageElement element);
void setImageFrameDecodingDuration(HTMLImageElement element, unrestricted float duration);
void resetImageAnimation(HTMLImageElement element);
readonly attribute InternalSettings settings;
readonly attribute unsigned long workerThreadCount;
const unsigned short LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1;
const unsigned short LAYER_TREE_INCLUDES_TILE_CACHES = 2;
const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 4;
const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 8;
const unsigned short LAYER_TREE_INCLUDES_CONTENT_LAYERS = 16;
const unsigned short LAYER_TREE_INCLUDES_ACCELERATES_DRAWING = 32;
[MayThrowException] DOMString layerTreeAsText(Document document, optional unsigned short flags = 0);
[MayThrowException] DOMString scrollingStateTreeAsText();
[MayThrowException] DOMString mainThreadScrollingReasons(); [MayThrowException] ClientRectList nonFastScrollableRects();
[MayThrowException] DOMString repaintRectsAsText();
[MayThrowException] void setElementUsesDisplayListDrawing(Element element, boolean usesDisplayListDrawing);
[MayThrowException] void setElementTracksDisplayListReplay(Element element, boolean trackReplay);
const unsigned short DISPLAY_LIST_INCLUDES_PLATFORM_OPERATIONS = 1;
[MayThrowException] DOMString displayListForElement(Element element, optional unsigned short flags = 0);
[MayThrowException] DOMString replayDisplayListForElement(Element element, optional unsigned short flags = 0);
[MayThrowException] void garbageCollectDocumentResources();
[MayThrowException] void insertAuthorCSS(DOMString css);
[MayThrowException] void insertUserCSS(DOMString css);
readonly attribute boolean isUnderMemoryPressure;
void beginSimulatedMemoryPressure();
void endSimulatedMemoryPressure();
#