icecat: add release icecat-140.7.0-1gnu1 for ecne
This commit is contained in:
parent
7d0f5dab3b
commit
30225f2e73
156 changed files with 9131 additions and 4525 deletions
|
|
@ -147,6 +147,31 @@ template Result<EditorRawDOMPoint, nsresult>
|
|||
HTMLEditUtils::ComputePointToPutCaretInElementIfOutside(
|
||||
const Element& aElement, const EditorRawDOMPoint& aCurrentPoint);
|
||||
|
||||
template Maybe<EditorLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorDOMPoint&, const Element&);
|
||||
template Maybe<EditorRawLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorDOMPoint&, const Element&);
|
||||
template Maybe<EditorLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorRawDOMPoint&, const Element&);
|
||||
template Maybe<EditorRawLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorRawDOMPoint&, const Element&);
|
||||
template Maybe<EditorLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorDOMPointInText&, const Element&);
|
||||
template Maybe<EditorRawLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorDOMPointInText&, const Element&);
|
||||
template Maybe<EditorLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorRawDOMPointInText&, const Element&);
|
||||
template Maybe<EditorRawLineBreak>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorRawDOMPointInText&, const Element&);
|
||||
|
||||
template bool HTMLEditUtils::IsSameCSSColorValue(const nsAString& aColorA,
|
||||
const nsAString& aColorB);
|
||||
template bool HTMLEditUtils::IsSameCSSColorValue(const nsACString& aColorA,
|
||||
|
|
@ -2873,6 +2898,33 @@ HTMLEditUtils::ComputePointToPutCaretInElementIfOutside(
|
|||
return EditorDOMPointType(firstEditableContent, 0u);
|
||||
}
|
||||
|
||||
// static
|
||||
template <typename EditorLineBreakType, typename EditorDOMPointType>
|
||||
Maybe<EditorLineBreakType>
|
||||
HTMLEditUtils::GetLineBreakBeforeBlockBoundaryIfPointIsBetweenThem(
|
||||
const EditorDOMPointType& aPoint, const Element& aEditingHost) {
|
||||
MOZ_ASSERT(aPoint.IsSet());
|
||||
if (MOZ_UNLIKELY(!aPoint.IsInContentNode())) {
|
||||
return Nothing{};
|
||||
}
|
||||
const WSScanResult previousThing =
|
||||
WSRunScanner::ScanPreviousVisibleNodeOrBlockBoundary(
|
||||
WSRunScanner::Scan::All, aPoint,
|
||||
BlockInlineCheck::UseComputedDisplayStyle, &aEditingHost);
|
||||
if (!previousThing.ReachedLineBreak()) {
|
||||
return Nothing{}; // No preceding line break.
|
||||
}
|
||||
const WSScanResult nextThing =
|
||||
WSRunScanner::ScanInclusiveNextVisibleNodeOrBlockBoundary(
|
||||
WSRunScanner::Scan::All, aPoint,
|
||||
BlockInlineCheck::UseComputedDisplayStyle, &aEditingHost);
|
||||
if (!nextThing.ReachedBlockBoundary()) {
|
||||
return Nothing{}; // The line break is not followed by a block boundary so
|
||||
// that it's a visible line break.
|
||||
}
|
||||
return Some(previousThing.CreateEditorLineBreak<EditorLineBreakType>());
|
||||
}
|
||||
|
||||
// static
|
||||
bool HTMLEditUtils::IsInlineStyleSetByElement(
|
||||
const nsIContent& aContent, const EditorInlineStyle& aStyle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue