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

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

Issue 257763004: Removed parameter that is always true. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/InlineTextBox.h ('k') | Source/core/rendering/svg/SVGRootInlineBox.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, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 void InlineTextBox::destroy() 72 void InlineTextBox::destroy()
73 { 73 {
74 AbstractInlineTextBox::willDestroy(this); 74 AbstractInlineTextBox::willDestroy(this);
75 75
76 if (!knownToHaveNoOverflow() && gTextBoxesWithOverflow) 76 if (!knownToHaveNoOverflow() && gTextBoxesWithOverflow)
77 gTextBoxesWithOverflow->remove(this); 77 gTextBoxesWithOverflow->remove(this);
78 InlineBox::destroy(); 78 InlineBox::destroy();
79 } 79 }
80 80
81 void InlineTextBox::markDirty(bool dirty) 81 void InlineTextBox::markDirty()
82 { 82 {
83 if (dirty) { 83 m_len = 0;
84 m_len = 0; 84 m_start = 0;
85 m_start = 0; 85 InlineBox::markDirty();
86 }
87 InlineBox::markDirty(dirty);
88 } 86 }
89 87
90 LayoutRect InlineTextBox::logicalOverflowRect() const 88 LayoutRect InlineTextBox::logicalOverflowRect() const
91 { 89 {
92 if (knownToHaveNoOverflow() || !gTextBoxesWithOverflow) 90 if (knownToHaveNoOverflow() || !gTextBoxesWithOverflow)
93 return enclosingIntRect(logicalFrameRect()); 91 return enclosingIntRect(logicalFrameRect());
94 return gTextBoxesWithOverflow->get(this); 92 return gTextBoxesWithOverflow->get(this);
95 } 93 }
96 94
97 void InlineTextBox::setLogicalOverflowRect(const LayoutRect& rect) 95 void InlineTextBox::setLogicalOverflowRect(const LayoutRect& rect)
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj); 1574 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj);
1577 const int rendererCharacterOffset = 24; 1575 const int rendererCharacterOffset = 24;
1578 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) 1576 for (; printedCharacters < rendererCharacterOffset; printedCharacters++)
1579 fputc(' ', stderr); 1577 fputc(' ', stderr);
1580 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d ata()); 1578 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d ata());
1581 } 1579 }
1582 1580
1583 #endif 1581 #endif
1584 1582
1585 } // namespace WebCore 1583 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineTextBox.h ('k') | Source/core/rendering/svg/SVGRootInlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698