Skip to content

Commit ba81ec5

Browse files
committed
[BlinkHelpers] Remove invalid paint fragment related helpers.
1 parent b8c07b4 commit ba81ec5

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -434,26 +434,6 @@ Loader.OnLoad(function() {
434434
return layoutText.f("text_").desc("Text").then(WhitespaceFormatter.CreateFormattedText);
435435
}));
436436

437-
DbgObject.AddArrayField(
438-
(type) => type.name().match(/^blink::(LayoutBox|LayoutInline|LayoutText)$/) != null,
439-
"paint_fragments_",
440-
Chromium.RendererProcessType("blink::NGPaintFragment"),
441-
UserEditableFunctions.Create((layout_object) => {
442-
return layout_object.f("bitfields_").f("is_in_layout_ng_inline_formatting_context_").val()
443-
.then((isInLayoutNGInlineFormattingContext) => {
444-
if (isInLayoutNGInlineFormattingContext) {
445-
return layout_object.f("first_paint_fragment_").list("next_for_same_layout_object_");
446-
} else {
447-
return [];
448-
}
449-
})
450-
})
451-
);
452-
453-
DbgObject.AddArrayField(Chromium.RendererProcessType("blink::LayoutText"), "text_fragments_", Chromium.RendererProcessType("blink::NGPhysicalTextFragment"), UserEditableFunctions.Create((layoutText) => {
454-
return Promise.map(layoutText.array("paint_fragments_"), (paintFragment) => paintFragment.f("physical_fragment_.ptr_").F("[as text fragment]"))
455-
}));
456-
457437
DbgObject.AddArrayField(Chromium.RendererProcessType("blink::LayoutText"), "text_boxes_", Chromium.RendererProcessType("blink::InlineTextBox"), UserEditableFunctions.Create((layoutText) => {
458438
return layoutText.f("bitfields_").f("is_in_layout_ng_inline_formatting_context_").val()
459439
.then((isInLayoutNGInlineFormattingContext) => isInLayoutNGInlineFormattingContext ? [] : layoutText.f("text_boxes_").array("entries_"));

0 commit comments

Comments
 (0)