[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:
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
}) {
|
||||
|
||||
@@ -20,7 +20,6 @@ void testMain() {
|
||||
domDocument.body!.append(styleElement);
|
||||
applyGlobalCssRulesToSheet(
|
||||
styleElement,
|
||||
hasAutofillOverlay: browserHasAutofillOverlay(),
|
||||
defaultCssFont: _kDefaultCssFont,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user