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

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

Issue 1162243004: Check for buffer under/over run in table cell painting (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extract common code Created 5 years, 6 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 | « no previous file | Source/core/layout/LayoutTableSection.cpp » ('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, 2009, 2013 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed.
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 , m_end(end) 49 , m_end(end)
50 { 50 {
51 } 51 }
52 52
53 unsigned start() const { return m_start; } 53 unsigned start() const { return m_start; }
54 unsigned end() const { return m_end; } 54 unsigned end() const { return m_end; }
55 55
56 void decreaseStart() { --m_start; } 56 void decreaseStart() { --m_start; }
57 void increaseEnd() { ++m_end; } 57 void increaseEnd() { ++m_end; }
58 58
59 void ensureConsistency(const unsigned);
60
59 private: 61 private:
60 unsigned m_start; 62 unsigned m_start;
61 unsigned m_end; 63 unsigned m_end;
62 }; 64 };
63 65
64 class LayoutTableCell; 66 class LayoutTableCell;
65 class LayoutTableRow; 67 class LayoutTableRow;
66 68
67 class CORE_EXPORT LayoutTableSection final : public LayoutBox { 69 class CORE_EXPORT LayoutTableSection final : public LayoutBox {
68 public: 70 public:
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // It is held at LayoutTableSection level to spare memory consumption by tab le cells. 316 // It is held at LayoutTableSection level to spare memory consumption by tab le cells.
315 using CellsCollapsedBordersMap = HashMap<pair<const LayoutTableCell*, int>, CollapsedBorderValue>; 317 using CellsCollapsedBordersMap = HashMap<pair<const LayoutTableCell*, int>, CollapsedBorderValue>;
316 CellsCollapsedBordersMap m_cellsCollapsedBorders; 318 CellsCollapsedBordersMap m_cellsCollapsedBorders;
317 }; 319 };
318 320
319 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 321 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
320 322
321 } // namespace blink 323 } // namespace blink
322 324
323 #endif // LayoutTableSection_h 325 #endif // LayoutTableSection_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698