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

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

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments 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
« no previous file with comments | « Source/core/layout/LayoutTable.cpp ('k') | Source/core/layout/LayoutTableRow.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 { 83 {
84 if (section()->hasSameDirectionAs(table())) 84 if (section()->hasSameDirectionAs(table()))
85 return style()->borderEnd(); 85 return style()->borderEnd();
86 86
87 return style()->borderStart(); 87 return style()->borderStart();
88 } 88 }
89 89
90 const BorderValue& borderAdjoiningStartCell(const LayoutTableCell*) const; 90 const BorderValue& borderAdjoiningStartCell(const LayoutTableCell*) const;
91 const BorderValue& borderAdjoiningEndCell(const LayoutTableCell*) const; 91 const BorderValue& borderAdjoiningEndCell(const LayoutTableCell*) const;
92 92
93 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override; 93 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
94 94
95 void addOverflowFromCell(const LayoutTableCell*); 95 void addOverflowFromCell(const LayoutTableCell*);
96 96
97 virtual const char* name() const override { return isAnonymous() ? "LayoutTa bleRow (anonymous)" : "LayoutTableRow"; } 97 virtual const char* name() const override { return isAnonymous() ? "LayoutTa bleRow (anonymous)" : "LayoutTableRow"; }
98 98
99 private: 99 private:
100 virtual LayoutObjectChildList* virtualChildren() override { return children( ); } 100 virtual LayoutObjectChildList* virtualChildren() override { return children( ); }
101 virtual const LayoutObjectChildList* virtualChildren() const override { retu rn children(); } 101 virtual const LayoutObjectChildList* virtualChildren() const override { retu rn children(); }
102 102
103 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTableRow || LayoutBox::isOfType(type); } 103 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectTableRow || LayoutBox::isOfType(type); }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 inline LayoutTableRow* LayoutTableSection::lastRow() const 152 inline LayoutTableRow* LayoutTableSection::lastRow() const
153 { 153 {
154 ASSERT(children() == virtualChildren()); 154 ASSERT(children() == virtualChildren());
155 return toLayoutTableRow(children()->lastChild()); 155 return toLayoutTableRow(children()->lastChild());
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
159 159
160 #endif // LayoutTableRow_h 160 #endif // LayoutTableRow_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTable.cpp ('k') | Source/core/layout/LayoutTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698