Skip to content

Commit 4e6c3fb

Browse files
committed
BlinkHelpers: Add a type description to view the text of blink::LayoutText
1 parent 2adc108 commit 4e6c3fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/target-specific/chromium/blink/blink-helpers/blink-helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ Loader.OnLoad(function() {
406406
});
407407
}));
408408

409+
DbgObject.AddTypeDescription(Chromium.RendererProcessType("blink::LayoutText"), "Text", false, UserEditableFunctions.Create((layoutText) => {
410+
return layoutText.f("text_").desc("Text").then(WhitespaceFormatter.CreateFormattedText);
411+
}));
412+
409413
DbgObject.AddArrayField(Chromium.RendererProcessType("blink::LayoutObject"), "child_objects_", Chromium.RendererProcessType("blink::LayoutObject"), UserEditableFunctions.Create((layoutObject) => {
410414
return layoutObject.vcast().f("children_")
411415
.then((layoutObjectChildList) => layoutObjectChildList.array("entries_"),

0 commit comments

Comments
 (0)