Changeset 156742 in webkit for trunk/Source/WebCore/rendering/RenderBlock.cpp
- Timestamp:
- Oct 1, 2013, 3:47:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderBlock.cpp
r156738 r156742 5955 5955 return; 5956 5956 5957 // FIXME: We need to destroy the first-letter object if it is no longer the first child. Need to find5958 // an efficient way to check for that situation though before implementing anything.5959 5957 RenderElement* firstLetterBlock = findFirstLetterBlock(this); 5960 5958 if (!firstLetterBlock) … … 5988 5986 return; 5989 5987 5990 // If the child already has style, then it has already been created, so we just want5991 // to update it.5992 5988 if (descendant->parent()->style()->styleType() == FIRST_LETTER) { 5989 // Destroy the first-letter object if it is no longer the first child. 5990 RenderObject* remainingText = descendant->parent()->nextSibling(); 5991 if (remainingText && descendant->node() != remainingText->node()) { 5992 if (!remainingText->isText() || remainingText->isBR()) 5993 return; 5994 5995 LayoutStateDisabler layoutStateDisabler(&view()); 5996 5997 if (RenderObject* oldRemainingText = toRenderBoxModelObject(descendant->parent())->firstLetterRemainingText()) 5998 toRenderText(oldRemainingText)->setText(toText(oldRemainingText->node())->data().impl()); 5999 6000 createFirstLetterRenderer(firstLetterBlock, toRenderText(remainingText)); 6001 return; 6002 } 6003 6004 // If the child already has style, then it has already been created, so we just want 6005 // to update it. 5993 6006 updateFirstLetterStyle(firstLetterBlock, descendant); 5994 6007 return;
Note:
See TracChangeset
for help on using the changeset viewer.