commit | d7429f951f6683d7c5dc374190e94685b44227f1 | [log] [tgz] |
---|---|---|
author | Kent Tamura <tkent@chromium.org> | Fri Apr 26 03:01:48 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Apr 26 03:01:48 2019 |
tree | 1f31ce1f1e40d98bfb3dcd2b48e936d20715262a | |
parent | c9b97fe8cc0bdb89ea9d7e840d9d2da410bae69d [diff] |
Add a comment to RecordFormStructure(). TBR=chrishtr@chromium.org Bug: 905922 Change-Id: Ia9f0a9cb7e34a5faa60623fc76838f6b63da1035 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1585400 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#654332}
diff --git a/third_party/blink/renderer/core/html/forms/form_controller.cc b/third_party/blink/renderer/core/html/forms/form_controller.cc index 53f6cd4..fed2d67 100644 --- a/third_party/blink/renderer/core/html/forms/form_controller.cc +++ b/third_party/blink/renderer/core/html/forms/form_controller.cc
@@ -347,6 +347,10 @@ ListedElement& control = *controls[i]; if (!control.ClassSupportsStateRestore()) continue; + // The resultant string will be fragile if it contains a name of a + // form-associated custom element. It's associated to the |form| only if its + // custom element definition is available. It's not associated if the + // definition is unavailable though the element structure is identical. if (control.IsElementInternals()) continue; if (!OwnerFormForState(control))