Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: Source/WebCore/rendering/RenderBlockLineLayout.cpp

Issue 10883035: Merge 125503 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/text/text-combine-first-line-crash-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 } else if (current.m_obj->isText()) { 2319 } else if (current.m_obj->isText()) {
2320 if (!current.m_pos) 2320 if (!current.m_pos)
2321 appliedStartWidth = false; 2321 appliedStartWidth = false;
2322 2322
2323 RenderText* t = toRenderText(current.m_obj); 2323 RenderText* t = toRenderText(current.m_obj);
2324 2324
2325 #if ENABLE(SVG) 2325 #if ENABLE(SVG)
2326 bool isSVGText = t->isSVGInlineText(); 2326 bool isSVGText = t->isSVGInlineText();
2327 #endif 2327 #endif
2328 2328
2329 RenderStyle* style = t->style(lineInfo.isFirstLine()); 2329 if (t->style()->hasTextCombine() && current.m_obj->isCombineText() & & !toRenderCombineText(current.m_obj)->isCombined())
2330 if (style->hasTextCombine() && current.m_obj->isCombineText() && !to RenderCombineText(current.m_obj)->isCombined())
2331 toRenderCombineText(current.m_obj)->combineText(); 2330 toRenderCombineText(current.m_obj)->combineText();
2332 2331
2332 RenderStyle* style = t->style(lineInfo.isFirstLine());
2333 const Font& f = style->font(); 2333 const Font& f = style->font();
2334 bool isFixedPitch = f.isFixedPitch(); 2334 bool isFixedPitch = f.isFixedPitch();
2335 bool canHyphenate = style->hyphens() == HyphensAuto && WebCore::canH yphenate(style->locale()); 2335 bool canHyphenate = style->hyphens() == HyphensAuto && WebCore::canH yphenate(style->locale());
2336 2336
2337 int lastSpace = current.m_pos; 2337 int lastSpace = current.m_pos;
2338 float wordSpacing = currentStyle->wordSpacing(); 2338 float wordSpacing = currentStyle->wordSpacing();
2339 float lastSpaceWordSpacing = 0; 2339 float lastSpaceWordSpacing = 0;
2340 2340
2341 // Non-zero only when kerning is enabled, in which case we measure w ords with their trailing 2341 // Non-zero only when kerning is enabled, in which case we measure w ords with their trailing
2342 // space, then subtract its width. 2342 // space, then subtract its width.
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2819 lineGridBox->alignBoxesInBlockDirection(logicalHeight(), textBoxDataMap, ver ticalPositionCache); 2819 lineGridBox->alignBoxesInBlockDirection(logicalHeight(), textBoxDataMap, ver ticalPositionCache);
2820 2820
2821 setLineGridBox(lineGridBox); 2821 setLineGridBox(lineGridBox);
2822 2822
2823 // FIXME: If any of the characteristics of the box change compared to the ol d one, then we need to do a deep dirtying 2823 // FIXME: If any of the characteristics of the box change compared to the ol d one, then we need to do a deep dirtying
2824 // (similar to what happens when the page height changes). Ideally, though, we only do this if someone is actually snapping 2824 // (similar to what happens when the page height changes). Ideally, though, we only do this if someone is actually snapping
2825 // to this grid. 2825 // to this grid.
2826 } 2826 }
2827 2827
2828 } 2828 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/text/text-combine-first-line-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698