clearInlineStyle method
void
clearInlineStyle()
Implementation
void clearInlineStyle() {
if (inlineStyle.isEmpty) return;
final bool enableBlink = ownerDocument.ownerView.enableBlink;
final Map<String, InlineStyleEntry> removedEntries = Map<String, InlineStyleEntry>.from(inlineStyle);
inlineStyle.clear();
if (!enableBlink) {
recalculateStyle();
return;
}
// Blink mode expects native-side cascade to follow with computed updates.
// Clear any stale inline overrides immediately.
for (final entry in removedEntries.entries) {
style.removeProperty(entry.key, entry.value.important ? true : null);
}
final CSSStyleDeclaration? sheetStyle = _sheetStyle;
if (sheetStyle != null && sheetStyle.isNotEmpty) {
style.union(sheetStyle);
}
}