[a11y] Make sure RenderFractionalTranslation updates its semantics after the translation field is set (#48985)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
fcf341e4f3
commit
b67d5ec6e9
@@ -55,8 +55,7 @@ window.\$hotReloadHook = function(modules) {
|
||||
// once we've reloaded every module, trigger the hot reload.
|
||||
if (reloadCount == modules.length) {
|
||||
require(["$entrypoint", "dart_sdk"], function(app, dart_sdk) {
|
||||
// See L81 below for an explanation.
|
||||
window.\$mainEntrypoint = app[Object.keys(app)[0]].main;
|
||||
window.\$mainEntrypoint = app.main.main;
|
||||
window.\$hotReload(resolve);
|
||||
});
|
||||
}
|
||||
@@ -79,23 +78,22 @@ define("main_module", ["$entrypoint", "dart_sdk"], function(app, dart_sdk) {
|
||||
let voidToNull = () => (voidToNull = dart_sdk.dart.constFn(dart_sdk.dart.fnType(dart_sdk.core.Null, [dart_sdk.dart.void])))();
|
||||
|
||||
// Attach the main entrypoint and hot reload functionality to the window.
|
||||
// The app module will have a single property which contains the actual application
|
||||
// code. The property name is based off of the entrypoint that is generated, for example
|
||||
// the file `foo/bar/baz.dart` will generate a property named approximately
|
||||
// `foo__bar__baz`. Rather than attempt to guess, we assume the first property of
|
||||
// this object is the module.
|
||||
window.\$mainEntrypoint = app[Object.keys(app)[0]].main;
|
||||
window.\$mainEntrypoint = app.main.main;
|
||||
if (window.\$hotReload == null) {
|
||||
window.\$hotReload = function(cb) {
|
||||
dart_sdk.developer.invokeExtension("ext.flutter.disassemble", "{}").then((_) => {
|
||||
dart_sdk.dart.hotRestart();
|
||||
window.\$mainEntrypoint();
|
||||
window.requestAnimationFrame(cb);
|
||||
dart_sdk.ui.webOnlyInitializePlatform().then(dart_sdk.core.Null, dart_sdk.dart.fn(_ => {
|
||||
window.\$mainEntrypoint();
|
||||
window.requestAnimationFrame(cb);
|
||||
}, voidToNull()));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
window.\$mainEntrypoint();
|
||||
dart_sdk.ui.webOnlyInitializePlatform().then(dart_sdk.core.Null, dart_sdk.dart.fn(_ => {
|
||||
app.main.main();
|
||||
}, voidToNull()));
|
||||
});
|
||||
|
||||
// Require JS configuration.
|
||||
|
||||
Reference in New Issue
Block a user