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

Side by Side Diff: Source/core/layout/LayoutTableCell.h

Issue 1106693002: Move the anonymous decoration to decoratedName. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutRubyRun.h ('k') | Source/core/layout/LayoutTableRow.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 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 return style()->borderEnd(); 215 return style()->borderEnd();
216 } 216 }
217 217
218 #if ENABLE(ASSERT) 218 #if ENABLE(ASSERT)
219 bool isFirstOrLastCellInRow() const 219 bool isFirstOrLastCellInRow() const
220 { 220 {
221 return !table()->cellAfter(this) || !table()->cellBefore(this); 221 return !table()->cellAfter(this) || !table()->cellBefore(this);
222 } 222 }
223 #endif 223 #endif
224 224
225 virtual const char* name() const override { return isAnonymous() ? "LayoutTa bleCell (anonymous)" : "LayoutTableCell"; } 225 virtual const char* name() const override { return "LayoutTableCell"; }
226 226
227 protected: 227 protected:
228 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 228 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
229 virtual void computePreferredLogicalWidths() override; 229 virtual void computePreferredLogicalWidths() override;
230 230
231 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL ayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const override; 231 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL ayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const override;
232 232
233 private: 233 private:
234 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTableCell || LayoutBlockFlow::isOfType(type); } 234 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTableCell || LayoutBlockFlow::isOfType(type); }
235 235
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 inline LayoutTableCell* LayoutTableRow::lastCell() const 308 inline LayoutTableCell* LayoutTableRow::lastCell() const
309 { 309 {
310 ASSERT(children() == virtualChildren()); 310 ASSERT(children() == virtualChildren());
311 return toLayoutTableCell(children()->lastChild()); 311 return toLayoutTableCell(children()->lastChild());
312 } 312 }
313 313
314 } // namespace blink 314 } // namespace blink
315 315
316 #endif // LayoutTableCell_h 316 #endif // LayoutTableCell_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutRubyRun.h ('k') | Source/core/layout/LayoutTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698