Changeset 106298 in webkit
- Timestamp:
- Jan 30, 2012 4:18:19 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106297 r106298 1 2012-01-30 Ryosuke Niwa <rniwa@webkit.org> 2 3 Crash in previousLinePosition when moving into a root inline box without leaves 4 https://bugs.webkit.org/show_bug.cgi?id=76812 5 6 Reviewed by Enrica Casucci. 7 8 Add a regression test for the crash. Unfortunately, we can only test previousLinePosition. 9 10 * editing/selection/move-into-empty-root-inline-box-expected.txt: Added. 11 * editing/selection/move-into-empty-root-inline-box.html: Added. 12 1 13 2012-01-30 Oliver Hunt <oliver@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r106291 r106298 1 2012-01-30 Ryosuke Niwa <rniwa@webkit.org> 2 3 Crash in previousLinePosition when moving into a root inline box without leaves 4 https://bugs.webkit.org/show_bug.cgi?id=76812 5 6 Reviewed by Enrica Casucci. 7 8 The crash was caused by us assuming that every root inline box has at least one leaf, 9 which isn't true when we create inline boxes for an empty text run with margin, border, etc... 10 11 Test: editing/selection/move-into-empty-root-inline-box.html 12 13 * editing/visible_units.cpp: 14 (WebCore::previousLinePosition): 15 (WebCore::nextLinePosition): 16 1 17 2012-01-30 Levi Weintraub <leviw@chromium.org> 2 18 -
trunk/Source/WebCore/editing/visible_units.cpp
r104350 r106298 577 577 // We want to skip zero height boxes. 578 578 // This could happen in case it is a TrailingFloatsRootInlineBox. 579 if (!root || !root->logicalHeight() )579 if (!root || !root->logicalHeight() || !root->firstLeafChild()) 580 580 root = 0; 581 581 } … … 678 678 // We want to skip zero height boxes. 679 679 // This could happen in case it is a TrailingFloatsRootInlineBox. 680 if (!root || !root->logicalHeight() )680 if (!root || !root->logicalHeight() || !root->firstLeafChild()) 681 681 root = 0; 682 682 }
Note: See TracChangeset
for help on using the changeset viewer.