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

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

Issue 301843002: Store repaint rects in the coordinate space of their backing GraphicsLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Changed name. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderTableCell.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 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 if (startPos == endPos) 1613 if (startPos == endPos)
1614 return IntRect(); 1614 return IntRect();
1615 1615
1616 LayoutRect rect; 1616 LayoutRect rect;
1617 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { 1617 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
1618 rect.unite(box->localSelectionRect(startPos, endPos)); 1618 rect.unite(box->localSelectionRect(startPos, endPos));
1619 rect.unite(ellipsisRectForBox(box, startPos, endPos)); 1619 rect.unite(ellipsisRectForBox(box, startPos, endPos));
1620 } 1620 }
1621 1621
1622 if (clipToVisibleContent) 1622 if (clipToVisibleContent)
1623 computeRectForRepaint(repaintContainer, rect); 1623 mapRectToRepaintBacking(repaintContainer, rect);
1624 else { 1624 else {
1625 if (cb->hasColumns()) 1625 if (cb->hasColumns())
1626 cb->adjustRectForColumns(rect); 1626 cb->adjustRectForColumns(rect);
1627 1627
1628 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing BoundingBox(); 1628 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing BoundingBox();
1629 } 1629 }
1630 1630
1631 return rect; 1631 return rect;
1632 } 1632 }
1633 1633
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 } 1868 }
1869 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1869 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1870 } 1870 }
1871 1871
1872 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox() 1872 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox()
1873 { 1873 {
1874 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); 1874 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox);
1875 } 1875 }
1876 1876
1877 } // namespace WebCore 1877 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCell.cpp ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698