Changeset 291754 in webkit
- Timestamp:
- Mar 23, 2022, 11:31:58 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/integration/LayoutIntegrationBoxTree.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r291749 r291754 1 2022-03-22 Brandon Stewart <brandonstewart@apple.com> 2 3 WBR element should set Clear property to None 4 https://bugs.webkit.org/show_bug.cgi?id=238275 5 6 Reviewed by Alan Bujtas. 7 8 WBR elements need to have their Clear property automatically set to None. 9 BR elements do not need this change. 10 11 * layout/integration/LayoutIntegrationBoxTree.cpp: 12 (WebCore::LayoutIntegration::BoxTree::buildTree): 13 1 14 2022-03-23 Kimmo Kinnunen <kkinnunen@apple.com> 2 15 -
trunk/Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp
r291169 r291754 110 110 styleToAdjust.setFloating(Float::None); 111 111 styleToAdjust.setPosition(PositionType::Static); 112 113 // Clear property should only apply on block elements, however, 114 // it appears that browsers seem to ignore it on <br> inline elements. 115 // https://drafts.csswg.org/css2/#propdef-clear 116 if (downcast<RenderLineBreak>(childRenderer).isWBR()) 117 styleToAdjust.setClear(Clear::None); 112 118 }; 113 119 adjustStyle(style);
Note:
See TracChangeset
for help on using the changeset viewer.