Optimized the handling of webview attribute mutation

Imported from:
https://chromium.googlesource.com/chromium/src/+/86dff6fc519e5db4469d89b2f56f8a1ce36d864f%5E%21/