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

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

Issue 566973002: Constify the rendering/ selection code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/RenderText.h ('k') | Source/core/rendering/RootInlineBox.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 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 1602
1603 const RenderLayerModelObject* RenderText::containerForPaintInvalidation() const 1603 const RenderLayerModelObject* RenderText::containerForPaintInvalidation() const
1604 { 1604 {
1605 const RenderObject* rendererToIssuePaintInvalidations = containingObjectForP aintInvalidation(); 1605 const RenderObject* rendererToIssuePaintInvalidations = containingObjectForP aintInvalidation();
1606 if (rendererToIssuePaintInvalidations) 1606 if (rendererToIssuePaintInvalidations)
1607 return rendererToIssuePaintInvalidations->containerForPaintInvalidation( ); 1607 return rendererToIssuePaintInvalidations->containerForPaintInvalidation( );
1608 // This can happen for detached render subtrees. 1608 // This can happen for detached render subtrees.
1609 return 0; 1609 return 0;
1610 } 1610 }
1611 1611
1612 LayoutRect RenderText::selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool clipToVisibleContent) 1612 LayoutRect RenderText::selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool clipToVisibleContent) const
1613 { 1613 {
1614 ASSERT(!needsLayout()); 1614 ASSERT(!needsLayout());
1615 1615
1616 if (selectionState() == SelectionNone) 1616 if (selectionState() == SelectionNone)
1617 return LayoutRect(); 1617 return LayoutRect();
1618 RenderBlock* cb = containingBlock(); 1618 RenderBlock* cb = containingBlock();
1619 if (!cb) 1619 if (!cb)
1620 return LayoutRect(); 1620 return LayoutRect();
1621 1621
1622 // Now calculate startPos and endPos for painting selection. 1622 // Now calculate startPos and endPos for painting selection.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 } 1892 }
1893 secureTextTimer->restartWithNewText(lastTypedCharacterOffset); 1893 secureTextTimer->restartWithNewText(lastTypedCharacterOffset);
1894 } 1894 }
1895 1895
1896 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox() 1896 PassRefPtr<AbstractInlineTextBox> RenderText::firstAbstractInlineTextBox()
1897 { 1897 {
1898 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox); 1898 return AbstractInlineTextBox::getOrCreate(this, m_firstTextBox);
1899 } 1899 }
1900 1900
1901 } // namespace blink 1901 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RootInlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698