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

Side by Side Diff: Source/core/rendering/RenderText.cpp

Issue 148823002: *** DO NOT LAND *** Measure the size and complexity of the old multicol implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderView.h » ('j') | 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 return IntRect(); 1609 return IntRect();
1610 1610
1611 LayoutRect rect; 1611 LayoutRect rect;
1612 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { 1612 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
1613 rect.unite(box->localSelectionRect(startPos, endPos)); 1613 rect.unite(box->localSelectionRect(startPos, endPos));
1614 rect.unite(ellipsisRectForBox(box, startPos, endPos)); 1614 rect.unite(ellipsisRectForBox(box, startPos, endPos));
1615 } 1615 }
1616 1616
1617 if (clipToVisibleContent) 1617 if (clipToVisibleContent)
1618 computeRectForRepaint(repaintContainer, rect); 1618 computeRectForRepaint(repaintContainer, rect);
1619 else { 1619 else
1620 if (cb->hasColumns())
1621 cb->adjustRectForColumns(rect);
1622
1623 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing BoundingBox(); 1620 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing BoundingBox();
1624 }
1625 1621
1626 return rect; 1622 return rect;
1627 } 1623 }
1628 1624
1629 int RenderText::caretMinOffset() const 1625 int RenderText::caretMinOffset() const
1630 { 1626 {
1631 InlineTextBox* box = firstTextBox(); 1627 InlineTextBox* box = firstTextBox();
1632 if (!box) 1628 if (!box)
1633 return 0; 1629 return 0;
1634 int minOffset = box->start(); 1630 int minOffset = box->start();
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 } 1859 }
1864 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1860 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1865 } 1861 }
1866 1862
1867 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox() 1863 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox()
1868 { 1864 {
1869 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); 1865 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox);
1870 } 1866 }
1871 1867
1872 } // namespace WebCore 1868 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698