[web] Remove unused function parameter (flutter/engine#41700)

The `hasAutofillOverlay` and `cssSelectorPrefix` parameters aren't really used in any useful way. Let's remove them.
This commit is contained in:
Mouad Debbar
2023-05-03 13:57:21 -04:00
committed by GitHub
parent 70a249203a
commit 9cb01b94d5
3 changed files with 0 additions and 4 deletions

View File

@@ -192,7 +192,6 @@ class FlutterViewEmbedder {
shadowRoot.appendChild(shadowRootStyleElement);
applyGlobalCssRulesToSheet(
shadowRootStyleElement,
hasAutofillOverlay: browserHasAutofillOverlay(),
defaultCssFont: defaultCssFont,
);
@@ -433,7 +432,6 @@ DomElement createTextEditingHostNode(DomElement root, String defaultFont) {
root.appendChild(styleElement);
applyGlobalCssRulesToSheet(
styleElement,
hasAutofillOverlay: browserHasAutofillOverlay(),
cssSelectorPrefix: FlutterViewEmbedder.flutterViewTagName,
defaultCssFont: defaultFont,
);

View File

@@ -9,7 +9,6 @@ import 'text_editing/text_editing.dart';
// Applies the required global CSS to an incoming [DomCSSStyleSheet] `sheet`.
void applyGlobalCssRulesToSheet(
DomHTMLStyleElement styleElement, {
required bool hasAutofillOverlay,
String cssSelectorPrefix = '',
required String defaultCssFont,
}) {

View File

@@ -20,7 +20,6 @@ void testMain() {
domDocument.body!.append(styleElement);
applyGlobalCssRulesToSheet(
styleElement,
hasAutofillOverlay: browserHasAutofillOverlay(),
defaultCssFont: _kDefaultCssFont,
);
});