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

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

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderText.h ('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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 LayoutUnit logicalTop = firstTextBox()->logicalTopVisualOverflow(); 1587 LayoutUnit logicalTop = firstTextBox()->logicalTopVisualOverflow();
1588 LayoutUnit logicalWidth = logicalRightSide - logicalLeftSide; 1588 LayoutUnit logicalWidth = logicalRightSide - logicalLeftSide;
1589 LayoutUnit logicalHeight = lastTextBox()->logicalBottomVisualOverflow() - lo gicalTop; 1589 LayoutUnit logicalHeight = lastTextBox()->logicalBottomVisualOverflow() - lo gicalTop;
1590 1590
1591 LayoutRect rect(logicalLeftSide, logicalTop, logicalWidth, logicalHeight); 1591 LayoutRect rect(logicalLeftSide, logicalTop, logicalWidth, logicalHeight);
1592 if (!style()->isHorizontalWritingMode()) 1592 if (!style()->isHorizontalWritingMode())
1593 rect = rect.transposedRect(); 1593 rect = rect.transposedRect();
1594 return rect; 1594 return rect;
1595 } 1595 }
1596 1596
1597 LayoutRect RenderText::clippedOverflowRectForPaintInvalidation(const LayoutLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInva lidationState) const 1597 LayoutRect RenderText::clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* paintInvali dationState) const
1598 { 1598 {
1599 if (style()->visibility() != VISIBLE) 1599 if (style()->visibility() != VISIBLE)
1600 return LayoutRect(); 1600 return LayoutRect();
1601 1601
1602 LayoutRect paintInvalidationRect(linesVisualOverflowBoundingBox()); 1602 LayoutRect paintInvalidationRect(linesVisualOverflowBoundingBox());
1603 mapRectToPaintInvalidationBacking(paintInvalidationContainer, paintInvalidat ionRect, paintInvalidationState); 1603 mapRectToPaintInvalidationBacking(paintInvalidationContainer, paintInvalidat ionRect, paintInvalidationState);
1604 return paintInvalidationRect; 1604 return paintInvalidationRect;
1605 } 1605 }
1606 1606
1607 LayoutRect RenderText::selectionRectForPaintInvalidation(const LayoutLayerModelO bject* paintInvalidationContainer) const 1607 LayoutRect RenderText::selectionRectForPaintInvalidation(const LayoutBoxModelObj ect* paintInvalidationContainer) const
1608 { 1608 {
1609 ASSERT(!needsLayout()); 1609 ASSERT(!needsLayout());
1610 1610
1611 if (selectionState() == SelectionNone) 1611 if (selectionState() == SelectionNone)
1612 return LayoutRect(); 1612 return LayoutRect();
1613 RenderBlock* cb = containingBlock(); 1613 RenderBlock* cb = containingBlock();
1614 if (!cb) 1614 if (!cb)
1615 return LayoutRect(); 1615 return LayoutRect();
1616 1616
1617 // Now calculate startPos and endPos for painting selection. 1617 // Now calculate startPos and endPos for painting selection.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1889 } 1889 }
1890 1890
1891 void RenderText::invalidateDisplayItemClients(DisplayItemList* displayItemList) const 1891 void RenderText::invalidateDisplayItemClients(DisplayItemList* displayItemList) const
1892 { 1892 {
1893 LayoutObject::invalidateDisplayItemClients(displayItemList); 1893 LayoutObject::invalidateDisplayItemClients(displayItemList);
1894 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) 1894 for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
1895 displayItemList->invalidate(box->displayItemClient()); 1895 displayItemList->invalidate(box->displayItemClient());
1896 } 1896 }
1897 1897
1898 } // namespace blink 1898 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698