Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7df8bfb

Browse files
authored
[web] Remove unused function parameter (#41700)
The `hasAutofillOverlay` and `cssSelectorPrefix` parameters aren't really used in any useful way. Let's remove them.
1 parent 59c316e commit 7df8bfb

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

lib/web_ui/lib/src/engine/embedder.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ class FlutterViewEmbedder {
192192
shadowRoot.appendChild(shadowRootStyleElement);
193193
applyGlobalCssRulesToSheet(
194194
shadowRootStyleElement,
195-
hasAutofillOverlay: browserHasAutofillOverlay(),
196195
defaultCssFont: defaultCssFont,
197196
);
198197

@@ -433,7 +432,6 @@ DomElement createTextEditingHostNode(DomElement root, String defaultFont) {
433432
root.appendChild(styleElement);
434433
applyGlobalCssRulesToSheet(
435434
styleElement,
436-
hasAutofillOverlay: browserHasAutofillOverlay(),
437435
cssSelectorPrefix: FlutterViewEmbedder.flutterViewTagName,
438436
defaultCssFont: defaultFont,
439437
);

lib/web_ui/lib/src/engine/global_styles.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import 'text_editing/text_editing.dart';
99
// Applies the required global CSS to an incoming [DomCSSStyleSheet] `sheet`.
1010
void applyGlobalCssRulesToSheet(
1111
DomHTMLStyleElement styleElement, {
12-
required bool hasAutofillOverlay,
1312
String cssSelectorPrefix = '',
1413
required String defaultCssFont,
1514
}) {

lib/web_ui/test/engine/global_styles_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ void testMain() {
2020
domDocument.body!.append(styleElement);
2121
applyGlobalCssRulesToSheet(
2222
styleElement,
23-
hasAutofillOverlay: browserHasAutofillOverlay(),
2423
defaultCssFont: _kDefaultCssFont,
2524
);
2625
});

0 commit comments

Comments
 (0)