Commit 2505d12
[BugFix][ElementTemplate] Notify DevTool typed page root
- Notify DevTool with the materialized typed page root when creating a typed page ElementTemplate, so the existing page-root path initializes element_root_.
- Keep InspectorTasmExecutor root handling limited to page nodes instead of deriving roots from arbitrary child insertion events.
- Add unit coverage that typed page ElementTemplate creation reports the materialized page root to the inspector observer.
TEST: tools/env.sh clang-format --dry-run --Werror lynx/core/runtime/lepus/bindings/renderer_functions.cc lynx/core/renderer/dom/fiber/fiber_element_unittest.cc lynx/devtool/lynx_devtool/agent/inspector_tasm_executor.cc lynx/devtool/lynx_devtool/agent/inspector_tasm_executor.h lynx/devtool/lynx_devtool/agent/inspector_tasm_executor_unittest.cc
TEST: git diff --check -- lynx/core/runtime/lepus/bindings/renderer_functions.cc lynx/core/renderer/dom/fiber/fiber_element_unittest.cc lynx/devtool/lynx_devtool/agent/inspector_tasm_executor.cc lynx/devtool/lynx_devtool/agent/inspector_tasm_executor.h lynx/devtool/lynx_devtool/agent/inspector_tasm_executor_unittest.cc
TEST: tools/env.sh python3 tools_shared/git_lynx.py check --checkers cpp-header-path --changed
TEST: tools/env.sh lynx/tools/rtf/rtf native-ut run --name lynx --target dom_unittest_exec
TEST: tools/env.sh lynx/tools/rtf/rtf native-ut run --name lynx --target devtool_agent_unittest_exec
AutoSubmit:True1 parent f334b7f commit 2505d12
2 files changed
Lines changed: 74 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
106 | 142 | | |
107 | 143 | | |
108 | 144 | | |
| |||
10207 | 10243 | | |
10208 | 10244 | | |
10209 | 10245 | | |
| 10246 | + | |
| 10247 | + | |
| 10248 | + | |
| 10249 | + | |
| 10250 | + | |
| 10251 | + | |
| 10252 | + | |
| 10253 | + | |
| 10254 | + | |
| 10255 | + | |
| 10256 | + | |
| 10257 | + | |
| 10258 | + | |
| 10259 | + | |
| 10260 | + | |
| 10261 | + | |
| 10262 | + | |
| 10263 | + | |
| 10264 | + | |
| 10265 | + | |
| 10266 | + | |
| 10267 | + | |
| 10268 | + | |
| 10269 | + | |
| 10270 | + | |
| 10271 | + | |
| 10272 | + | |
| 10273 | + | |
| 10274 | + | |
| 10275 | + | |
| 10276 | + | |
| 10277 | + | |
10210 | 10278 | | |
10211 | 10279 | | |
10212 | 10280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3674 | 3674 | | |
3675 | 3675 | | |
3676 | 3676 | | |
| 3677 | + | |
3677 | 3678 | | |
3678 | 3679 | | |
3679 | 3680 | | |
3680 | | - | |
| 3681 | + | |
| 3682 | + | |
3681 | 3683 | | |
3682 | 3684 | | |
3683 | 3685 | | |
3684 | 3686 | | |
3685 | 3687 | | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
3686 | 3691 | | |
3687 | 3692 | | |
3688 | 3693 | | |
| |||
0 commit comments