Martin Robinson
56e79459f2
script: Modify and copy the contents of <textarea> placeholder less ( #43452 )
...
Instead of always doing the newline fixup on the `<textarea>`
placeholder, only do it when the placeholder attribute itself changes.
This avoids doing string replacements when they are not necessary (such
as when a `<textarea>` switches from having text to only having the
placeholder and viceversa).
In addition make it so that `DOMString::clear` preserves the string
allocation when called.
Testing: This is just a small optimization so testing should not be
necessary. Existing behavior is verified via WPT tests.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2026-03-19 15:57:28 +00:00
..
2026-02-25 07:14:23 +00:00
2026-03-15 08:11:04 +00:00
2026-03-12 13:28:21 +00:00
2026-03-15 22:13:56 +00:00
2025-11-20 06:20:47 +00:00
2026-03-15 22:13:56 +00:00
2026-03-18 09:23:26 +00:00
2026-03-19 12:40:11 +00:00
2026-03-15 12:57:19 +00:00
2026-03-12 13:28:21 +00:00
2026-02-12 15:17:30 +00:00
2026-03-19 15:57:28 +00:00
2026-03-12 13:28:21 +00:00
2026-03-12 13:28:21 +00:00
2026-03-02 20:35:37 +00:00
2026-03-19 06:22:00 +00:00
2026-03-19 06:22:00 +00:00
2026-03-19 06:22:00 +00:00
2026-03-19 12:40:11 +00:00
2026-03-16 14:02:33 +00:00
2026-03-18 11:03:54 +00:00
2026-03-08 11:46:42 +00:00
2026-03-18 09:15:31 +00:00
2026-02-25 10:29:10 +00:00
2026-03-15 20:33:07 +00:00
2026-02-12 15:17:30 +00:00
2026-03-12 13:28:21 +00:00
2026-02-12 15:17:30 +00:00
2026-03-19 09:41:54 +00:00
2026-02-14 10:03:25 +00:00
2026-03-18 16:33:45 +00:00
2026-03-11 06:06:51 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-03-18 09:15:31 +00:00
2025-11-24 22:41:45 +00:00
2026-03-12 21:58:56 +00:00
2026-02-07 19:53:00 +00:00
2026-03-14 07:37:47 +00:00
2026-03-08 11:46:42 +00:00
2026-01-09 10:09:45 +00:00
2026-03-06 19:25:33 +00:00
2026-02-12 15:17:30 +00:00
2025-11-04 18:29:06 +00:00
2026-02-25 21:40:39 +00:00
2026-03-06 19:25:33 +00:00
2026-03-17 08:02:49 +00:00
2026-03-12 13:28:21 +00:00
2026-03-17 13:03:33 +00:00
2026-02-24 19:24:46 +00:00
2026-03-09 17:51:52 +00:00
2026-03-12 13:28:21 +00:00
2025-11-01 05:32:45 +00:00
2026-03-04 06:44:39 +00:00
2025-10-23 14:02:28 +00:00
2025-10-05 15:12:16 +00:00
2025-10-05 15:12:16 +00:00
2026-01-10 08:05:49 +00:00
2026-03-12 13:28:21 +00:00
2026-03-14 10:03:48 +00:00
2026-03-18 20:24:46 +00:00
2026-03-19 10:51:38 +00:00
2026-03-14 07:37:47 +00:00
2026-03-12 13:28:21 +00:00
2026-03-14 07:37:47 +00:00
2026-03-08 11:46:42 +00:00
2026-03-17 13:03:33 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2026-03-14 19:40:49 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2025-11-01 05:32:45 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-08 11:46:42 +00:00
2026-03-06 09:58:33 +00:00
2026-03-06 20:02:37 +00:00
2026-03-19 13:52:24 +00:00
2026-02-25 10:34:21 +00:00
2025-11-01 05:32:45 +00:00
2026-02-20 15:50:46 +00:00
2026-03-19 06:22:00 +00:00
2026-03-18 06:59:22 +00:00
2025-12-05 07:23:32 +00:00
2025-12-05 07:23:32 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-08 07:49:27 +00:00
2025-12-12 14:33:45 +00:00
2026-03-06 19:25:33 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-03-10 17:02:19 +00:00
2026-03-18 09:15:31 +00:00
2025-11-06 11:06:03 +00:00
2026-01-03 10:54:27 +00:00
2026-02-12 15:17:30 +00:00
2026-03-12 13:28:21 +00:00
2026-03-06 19:25:33 +00:00
2026-03-08 11:46:42 +00:00
2026-03-17 10:13:49 +00:00
2026-01-27 18:09:01 +00:00
2026-03-06 20:02:37 +00:00
2026-03-12 13:28:21 +00:00
2026-02-26 15:52:26 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-03-18 21:18:31 +00:00
2026-03-06 19:25:33 +00:00
2026-02-12 15:17:30 +00:00
2026-01-10 08:05:49 +00:00
2026-03-06 20:02:37 +00:00
2026-01-10 08:05:49 +00:00
2026-03-19 06:22:00 +00:00
2026-02-23 13:05:21 +00:00
2026-03-18 09:15:31 +00:00
2026-03-16 09:55:46 +00:00
2026-01-10 08:05:49 +00:00
2026-03-19 06:22:00 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-02-17 13:15:24 +00:00
2026-02-21 05:24:42 +00:00
2025-11-01 05:32:45 +00:00
2025-08-09 18:01:00 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-03-06 19:25:33 +00:00
2025-11-01 05:32:45 +00:00
2025-11-01 05:32:45 +00:00
2026-03-19 06:22:00 +00:00
2026-01-03 10:54:27 +00:00
2026-02-25 09:13:18 +00:00
2025-12-27 16:33:26 +00:00
2026-01-10 08:05:49 +00:00
2026-03-08 11:46:42 +00:00
2026-01-10 08:05:49 +00:00
2026-03-15 12:57:19 +00:00
2026-03-17 19:37:40 +00:00
2026-03-08 11:46:42 +00:00
2026-01-23 15:38:57 +00:00
2026-02-12 15:17:30 +00:00
2025-11-01 05:32:45 +00:00
2026-01-23 15:38:57 +00:00
2026-03-13 13:40:40 +00:00
2026-02-28 08:38:32 +00:00
2026-03-14 19:40:49 +00:00
2025-12-05 07:23:32 +00:00
2025-12-21 12:45:43 +00:00
2026-03-08 11:46:42 +00:00
2025-12-05 07:23:32 +00:00
2026-03-09 17:51:52 +00:00
2026-03-14 07:37:47 +00:00
2026-02-26 11:52:36 +00:00
2026-01-03 10:54:27 +00:00
2025-11-02 18:20:18 +00:00
2026-03-06 19:25:33 +00:00
2026-03-06 19:25:33 +00:00
2025-11-01 05:32:45 +00:00
2026-03-16 09:55:46 +00:00
2026-03-06 19:25:33 +00:00
2026-02-12 15:17:30 +00:00
2026-03-12 13:28:21 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00
2026-02-03 23:20:54 +00:00
2026-03-10 17:02:19 +00:00
2026-02-25 10:34:21 +00:00
2025-11-13 14:53:57 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-01-28 09:33:55 +00:00
2026-03-04 13:37:33 +00:00
2026-03-06 19:25:33 +00:00
2026-03-19 10:51:38 +00:00
2026-03-14 21:42:02 +00:00
2026-02-17 05:37:59 +00:00
2026-03-10 17:02:19 +00:00
2026-01-27 18:09:01 +00:00
2026-03-19 06:22:00 +00:00
2026-02-12 15:17:30 +00:00
2025-10-25 23:25:01 +00:00
2026-02-12 15:17:30 +00:00
2026-02-12 15:17:30 +00:00