diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-18 16:35:47 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-18 15:45:54 +0000 |
commit | 32f5a1c56531e4210bc4cf8d8c7825d66e081888 (patch) | |
tree | eeeec6822f4d738d8454525233fd0e2e3a659e6d /chromium/third_party/blink/renderer/core/layout/layout_br.cc | |
parent | 99677208ff3b216fdfec551fbe548da5520cd6fb (diff) | |
download | qtwebengine-chromium-32f5a1c56531e4210bc4cf8d8c7825d66e081888.tar.gz |
BASELINE: Update Chromium to 87.0.4280.67
Change-Id: Ib157360be8c2ffb2c73125751a89f60e049c1d54
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_br.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/layout_br.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_br.cc b/chromium/third_party/blink/renderer/core/layout/layout_br.cc index c96e4cd4a6a..cb96635ea09 100644 --- a/chromium/third_party/blink/renderer/core/layout/layout_br.cc +++ b/chromium/third_party/blink/renderer/core/layout/layout_br.cc @@ -38,6 +38,7 @@ LayoutBR::LayoutBR(Node* node) : LayoutText(node, NewlineString()) {} LayoutBR::~LayoutBR() = default; int LayoutBR::LineHeight(bool first_line) const { + NOT_DESTROYED(); const ComputedStyle& style = StyleRef( first_line && GetDocument().GetStyleEngine().UsesFirstLineRules()); return style.ComputedLineHeight(); @@ -45,22 +46,27 @@ int LayoutBR::LineHeight(bool first_line) const { void LayoutBR::StyleDidChange(StyleDifference diff, const ComputedStyle* old_style) { + NOT_DESTROYED(); LayoutText::StyleDidChange(diff, old_style); } int LayoutBR::CaretMinOffset() const { + NOT_DESTROYED(); return 0; } int LayoutBR::CaretMaxOffset() const { + NOT_DESTROYED(); return 1; } PositionWithAffinity LayoutBR::PositionForPoint(const PhysicalOffset&) const { + NOT_DESTROYED(); return CreatePositionWithAffinity(0); } Position LayoutBR::PositionForCaretOffset(unsigned offset) const { + NOT_DESTROYED(); DCHECK_LE(offset, 1u); DCHECK(GetNode()); return offset ? Position::AfterNode(*GetNode()) @@ -69,6 +75,7 @@ Position LayoutBR::PositionForCaretOffset(unsigned offset) const { base::Optional<unsigned> LayoutBR::CaretOffsetForPosition( const Position& position) const { + NOT_DESTROYED(); if (position.IsNull() || position.AnchorNode() != GetNode()) return base::nullopt; DCHECK(position.IsBeforeAnchor() || position.IsAfterAnchor()) << position; |