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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/InlineBox.h

Issue 2602793004: Fix positioning of "text-underline-position:under" for multi-elements (Closed)
Patch Set: drott nit Created 3 years, 11 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 virtual void setConstructed() { m_bitfields.setConstructed(true); } 166 virtual void setConstructed() { m_bitfields.setConstructed(true); }
167 167
168 void setExtracted(bool extracted = true) { 168 void setExtracted(bool extracted = true) {
169 m_bitfields.setExtracted(extracted); 169 m_bitfields.setExtracted(extracted);
170 } 170 }
171 171
172 void setFirstLineStyleBit(bool firstLine) { 172 void setFirstLineStyleBit(bool firstLine) {
173 m_bitfields.setFirstLine(firstLine); 173 m_bitfields.setFirstLine(firstLine);
174 } 174 }
175 bool isFirstLineStyle() const { return m_bitfields.firstLine(); } 175 bool isFirstLineStyle() const { return m_bitfields.firstLine(); }
176 const ComputedStyle& lineStyleRef() const {
177 return getLineLayoutItem().styleRef(isFirstLineStyle());
178 }
176 179
177 void remove(MarkLineBoxes = MarkLineBoxesDirty); 180 void remove(MarkLineBoxes = MarkLineBoxesDirty);
178 181
179 InlineBox* nextOnLine() const { return m_next; } 182 InlineBox* nextOnLine() const { return m_next; }
180 InlineBox* prevOnLine() const { return m_prev; } 183 InlineBox* prevOnLine() const { return m_prev; }
181 void setNextOnLine(InlineBox* next) { 184 void setNextOnLine(InlineBox* next) {
182 ASSERT(m_parent || !next); 185 ASSERT(m_parent || !next);
183 m_next = next; 186 m_next = next;
184 } 187 }
185 void setPrevOnLine(InlineBox* prev) { 188 void setPrevOnLine(InlineBox* prev) {
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 569
567 } // namespace blink 570 } // namespace blink
568 571
569 #ifndef NDEBUG 572 #ifndef NDEBUG
570 // Outside the WebCore namespace for ease of invocation from gdb. 573 // Outside the WebCore namespace for ease of invocation from gdb.
571 void showTree(const blink::InlineBox*); 574 void showTree(const blink::InlineBox*);
572 void showLineTree(const blink::InlineBox*); 575 void showLineTree(const blink::InlineBox*);
573 #endif 576 #endif
574 577
575 #endif // InlineBox_h 578 #endif // InlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698