Diff
Modified: trunk/Source/WebCore/ChangeLog (288290 => 288291)
--- trunk/Source/WebCore/ChangeLog 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/ChangeLog 2022-01-20 15:58:50 UTC (rev 288291)
@@ -1,3 +1,25 @@
+2022-01-20 Alan Bujtas <[email protected]>
+
+ Address post-landing review comments from Darin.
+
+ Reviewed by Antti Koivisto and Darin Adler.
+
+ * css/CSSPrimitiveValueMappings.h:
+ (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
+ (WebCore::CSSPrimitiveValue::operator UnicodeBidi const):
+ * layout/formattingContexts/inline/InlineItemsBuilder.cpp:
+ (WebCore::Layout::handleEnterExitBidiContext):
+ (WebCore::Layout::buildBidiParagraph):
+ (WebCore::Layout::InlineItemsBuilder::handleInlineBoxStart):
+ (WebCore::Layout::InlineItemsBuilder::handleInlineBoxEnd):
+ * rendering/LegacyInlineIterator.h:
+ (WebCore::notifyObserverEnteredObject):
+ (WebCore::notifyObserverWillExitObject):
+ * rendering/RenderMenuList.cpp:
+ (WebCore::RenderMenuList::adjustInnerStyle):
+ * rendering/style/RenderStyle.h:
+ (WebCore::RenderStyle::initialUnicodeBidi):
+
2022-01-20 Youenn Fablet <[email protected]>
AVAudioSessionCaptureDeviceManager is not always computing the right default input device
Modified: trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h (288290 => 288291)
--- trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h 2022-01-20 15:58:50 UTC (rev 288291)
@@ -2619,7 +2619,7 @@
{
setPrimitiveUnitType(CSSUnitType::CSS_VALUE_ID);
switch (e) {
- case UnicodeBidi::UBNormal:
+ case UnicodeBidi::Normal:
m_value.valueID = CSSValueNormal;
break;
case UnicodeBidi::Embed:
@@ -2646,7 +2646,7 @@
switch (m_value.valueID) {
case CSSValueNormal:
- return UnicodeBidi::UBNormal;
+ return UnicodeBidi::Normal;
case CSSValueEmbed:
return UnicodeBidi::Embed;
case CSSValueBidiOverride:
@@ -2665,7 +2665,7 @@
}
ASSERT_NOT_REACHED();
- return UnicodeBidi::UBNormal;
+ return UnicodeBidi::Normal;
}
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(UserDrag e)
Modified: trunk/Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp (288290 => 288291)
--- trunk/Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp 2022-01-20 15:58:50 UTC (rev 288291)
@@ -188,7 +188,7 @@
{
auto isEnteringBidi = enterExitType == EnterExitType::EnteringBlock || enterExitType == EnterExitType::EnteringInlineBox;
switch (unicodeBidi) {
- case UnicodeBidi::UBNormal:
+ case UnicodeBidi::Normal:
// The box does not open an additional level of embedding with respect to the bidirectional algorithm.
// For inline boxes, implicit reordering works across box boundaries.
break;
@@ -252,7 +252,7 @@
} else if (inlineItem.isInlineBoxStart() || inlineItem.isInlineBoxEnd()) {
// https://drafts.csswg.org/css-writing-modes/#unicode-bidi
auto& style = inlineItem.style();
- auto initiatesControlCharacter = style.rtlOrdering() == Order::Logical && style.unicodeBidi() != UnicodeBidi::UBNormal;
+ auto initiatesControlCharacter = style.rtlOrdering() == Order::Logical && style.unicodeBidi() != UnicodeBidi::Normal;
if (!initiatesControlCharacter) {
// Opaque items do not have position in the bidi paragraph. They inherit their bidi level from the next inline item.
inlineItemOffsetList.uncheckedAppend({ });
@@ -557,7 +557,7 @@
{
inlineItems.append({ inlineBox, InlineItem::Type::InlineBoxStart });
auto& style = inlineBox.style();
- m_needsVisualReordering = m_needsVisualReordering || !style.isLeftToRightDirection() || (style.rtlOrdering() == Order::Logical && style.unicodeBidi() != UnicodeBidi::UBNormal);
+ m_needsVisualReordering = m_needsVisualReordering || !style.isLeftToRightDirection() || (style.rtlOrdering() == Order::Logical && style.unicodeBidi() != UnicodeBidi::Normal);
}
void InlineItemsBuilder::handleInlineBoxEnd(const Box& inlineBox, InlineItems& inlineItems)
@@ -564,7 +564,7 @@
{
inlineItems.append({ inlineBox, InlineItem::Type::InlineBoxEnd });
// Inline box end item itself can not trigger bidi content.
- ASSERT(needsVisualReordering() || inlineBox.style().isLeftToRightDirection() || inlineBox.style().rtlOrdering() == Order::Visual || inlineBox.style().unicodeBidi() == UnicodeBidi::UBNormal);
+ ASSERT(needsVisualReordering() || inlineBox.style().isLeftToRightDirection() || inlineBox.style().rtlOrdering() == Order::Visual || inlineBox.style().unicodeBidi() == UnicodeBidi::Normal);
}
void InlineItemsBuilder::handleInlineLevelBox(const Box& layoutBox, InlineItems& inlineItems)
Modified: trunk/Source/WebCore/platform/text/UnicodeBidi.h (288290 => 288291)
--- trunk/Source/WebCore/platform/text/UnicodeBidi.h 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/platform/text/UnicodeBidi.h 2022-01-20 15:58:50 UTC (rev 288291)
@@ -29,7 +29,7 @@
namespace WebCore {
enum class UnicodeBidi : uint8_t {
- UBNormal,
+ Normal,
Embed,
Override,
Isolate,
Modified: trunk/Source/WebCore/rendering/LegacyInlineIterator.h (288290 => 288291)
--- trunk/Source/WebCore/rendering/LegacyInlineIterator.h 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/rendering/LegacyInlineIterator.h 2022-01-20 15:58:50 UTC (rev 288291)
@@ -155,7 +155,7 @@
const RenderStyle& style = object->style();
auto unicodeBidi = style.unicodeBidi();
- if (unicodeBidi == UnicodeBidi::UBNormal) {
+ if (unicodeBidi == UnicodeBidi::Normal) {
// http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi
// "The element does not open an additional level of embedding with respect to the bidirectional algorithm."
// Thus we ignore any possible dir= attribute on the span.
@@ -181,7 +181,7 @@
return;
auto unicodeBidi = object->style().unicodeBidi();
- if (unicodeBidi == UnicodeBidi::UBNormal)
+ if (unicodeBidi == UnicodeBidi::Normal)
return; // Nothing to do for unicode-bidi: normal
if (isIsolated(unicodeBidi)) {
observer->exitIsolate();
Modified: trunk/Source/WebCore/rendering/RenderMenuList.cpp (288290 => 288291)
--- trunk/Source/WebCore/rendering/RenderMenuList.cpp 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/rendering/RenderMenuList.cpp 2022-01-20 15:58:50 UTC (rev 288291)
@@ -141,7 +141,7 @@
UnicodeBidi unicodeBidi;
if (multiple() && selectedOptionCount(*this) != 1) {
direction = (m_buttonText && m_buttonText->text().defaultWritingDirection() == U_RIGHT_TO_LEFT) ? TextDirection::RTL : TextDirection::LTR;
- unicodeBidi = UnicodeBidi::UBNormal;
+ unicodeBidi = UnicodeBidi::Normal;
} else if (m_optionStyle) {
direction = m_optionStyle->direction();
unicodeBidi = m_optionStyle->unicodeBidi();
Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (288290 => 288291)
--- trunk/Source/WebCore/rendering/style/RenderStyle.h 2022-01-20 15:55:10 UTC (rev 288290)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h 2022-01-20 15:58:50 UTC (rev 288291)
@@ -1561,7 +1561,7 @@
static Clear initialClear() { return Clear::None; }
static DisplayType initialDisplay() { return DisplayType::Inline; }
- static UnicodeBidi initialUnicodeBidi() { return UnicodeBidi::UBNormal; }
+ static UnicodeBidi initialUnicodeBidi() { return UnicodeBidi::Normal; }
static PositionType initialPosition() { return PositionType::Static; }
static VerticalAlign initialVerticalAlign() { return VerticalAlign::Baseline; }
static Float initialFloating() { return Float::None; }