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

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

Issue 2366193002: Fix paint invalidation rects for repeating paginated table headers. (Closed)
Patch Set: Created 4 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 * 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // border collapsing, missing cells, etc. 295 // border collapsing, missing cells, etc.
296 // For simplicity, just conservatively assume all table sections are not opa que. 296 // For simplicity, just conservatively assume all table sections are not opa que.
297 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; } 297 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; }
298 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r eturn false; } 298 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { r eturn false; }
299 299
300 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const; 300 int paginationStrutForRow(LayoutTableRow*, LayoutUnit logicalOffset) const;
301 301
302 void setOffsetForRepeatingHeader(LayoutUnit offset) { m_offsetForRepeatingHe ader = offset; } 302 void setOffsetForRepeatingHeader(LayoutUnit offset) { m_offsetForRepeatingHe ader = offset; }
303 LayoutUnit offsetForRepeatingHeader() const { return m_offsetForRepeatingHea der; } 303 LayoutUnit offsetForRepeatingHeader() const { return m_offsetForRepeatingHea der; }
304 304
305 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect&, VisualRectFlags = DefaultVisualRectFlags) const override;
306
307 bool hasRepeatingHeaderGroup() const;
308
305 protected: 309 protected:
306 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 310 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
307 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 311 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
308 312
309 private: 313 private:
310 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableSection || LayoutBox::isOfType(type); } 314 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableSection || LayoutBox::isOfType(type); }
311 315
312 void willBeRemovedFromTree() override; 316 void willBeRemovedFromTree() override;
313 317
314 void layout() override; 318 void layout() override;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 bool m_hasMultipleCellLevels; 399 bool m_hasMultipleCellLevels;
396 400
397 LayoutUnit m_offsetForRepeatingHeader; 401 LayoutUnit m_offsetForRepeatingHeader;
398 }; 402 };
399 403
400 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 404 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
401 405
402 } // namespace blink 406 } // namespace blink
403 407
404 #endif // LayoutTableSection_h 408 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698