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

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

Issue 627773002: Move painting code from SVGInlineTextBox to SVGInlineTextBoxPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix debug build. Created 6 years, 2 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 unsigned variables[1]; 64 unsigned variables[1];
65 unsigned short variables2[2]; 65 unsigned short variables2[2];
66 void* pointers[2]; 66 void* pointers[2];
67 }; 67 };
68 68
69 COMPILE_ASSERT(sizeof(InlineTextBox) == sizeof(SameSizeAsInlineTextBox), InlineT extBox_should_stay_small); 69 COMPILE_ASSERT(sizeof(InlineTextBox) == sizeof(SameSizeAsInlineTextBox), InlineT extBox_should_stay_small);
70 70
71 typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap; 71 typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap;
72 static InlineTextBoxOverflowMap* gTextBoxesWithOverflow; 72 static InlineTextBoxOverflowMap* gTextBoxesWithOverflow;
73 73
74
75 void InlineTextBox::destroy() 74 void InlineTextBox::destroy()
76 { 75 {
77 AbstractInlineTextBox::willDestroy(this); 76 AbstractInlineTextBox::willDestroy(this);
78 77
79 if (!knownToHaveNoOverflow() && gTextBoxesWithOverflow) 78 if (!knownToHaveNoOverflow() && gTextBoxesWithOverflow)
80 gTextBoxesWithOverflow->remove(this); 79 gTextBoxesWithOverflow->remove(this);
81 InlineTextBoxPainter::removeFromTextBlobCache(*this); 80 InlineTextBoxPainter::removeFromTextBlobCache(*this);
82 InlineBox::destroy(); 81 InlineBox::destroy();
83 } 82 }
84 83
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj); 554 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj);
556 const int rendererCharacterOffset = 24; 555 const int rendererCharacterOffset = 24;
557 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) 556 for (; printedCharacters < rendererCharacterOffset; printedCharacters++)
558 fputc(' ', stderr); 557 fputc(' ', stderr);
559 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d ata()); 558 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d ata());
560 } 559 }
561 560
562 #endif 561 #endif
563 562
564 } // namespace blink 563 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | Source/core/rendering/svg/SVGInlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698