Title: [276726] trunk/Source/WebCore
- Revision
- 276726
- Author
- [email protected]
- Date
- 2021-04-28 11:53:12 -0700 (Wed, 28 Apr 2021)
Log Message
[clang] Remove implicit cast related warnings
https://bugs.webkit.org/show_bug.cgi?id=225139
Reviewed by Darin Adler.
Added explicit cast to suppress warning.
Behavior is not changed from implicit cast.
No new tests because there's no behavior change.
* layout/inlineformatting/InlineLine.cpp:
(WebCore::Layout::Line::Run::removeTrailingLetterSpacing):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (276725 => 276726)
--- trunk/Source/WebCore/ChangeLog 2021-04-28 18:15:01 UTC (rev 276725)
+++ trunk/Source/WebCore/ChangeLog 2021-04-28 18:53:12 UTC (rev 276726)
@@ -1,3 +1,18 @@
+2021-04-28 Basuke Suzuki <[email protected]>
+
+ [clang] Remove implicit cast related warnings
+ https://bugs.webkit.org/show_bug.cgi?id=225139
+
+ Reviewed by Darin Adler.
+
+ Added explicit cast to suppress warning.
+ Behavior is not changed from implicit cast.
+
+ No new tests because there's no behavior change.
+
+ * layout/inlineformatting/InlineLine.cpp:
+ (WebCore::Layout::Line::Run::removeTrailingLetterSpacing):
+
2021-04-28 Mark Lam <[email protected]>
Fix exception assertions in light of the TerminationException.
Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp (276725 => 276726)
--- trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp 2021-04-28 18:15:01 UTC (rev 276725)
+++ trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp 2021-04-28 18:53:12 UTC (rev 276726)
@@ -487,7 +487,7 @@
{
ASSERT(hasTrailingLetterSpacing());
shrinkHorizontally(trailingLetterSpacing());
- ASSERT(logicalWidth() > 0 || (!logicalWidth() && style().letterSpacing() >= intMaxForLayoutUnit));
+ ASSERT(logicalWidth() > 0 || (!logicalWidth() && style().letterSpacing() >= static_cast<float>(intMaxForLayoutUnit)));
}
void Line::Run::removeTrailingWhitespace()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes