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

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

Issue 2208463003: First step of PaintInvalidator implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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, 2010 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 const char* name() const override { return "LayoutTable"; } 395 const char* name() const override { return "LayoutTable"; }
396 396
397 // Whether a table has opaque foreground depends on many factors, e.g. borde r spacing, missing cells, etc. 397 // Whether a table has opaque foreground depends on many factors, e.g. borde r spacing, missing cells, etc.
398 // For simplicity, just conservatively assume foreground of all tables are n ot opaque. 398 // For simplicity, just conservatively assume foreground of all tables are n ot opaque.
399 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; } 399 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; }
400 400
401 protected: 401 protected:
402 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 402 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
403 void simplifiedNormalFlowLayout() override; 403 void simplifiedNormalFlowLayout() override;
404 bool recalcChildOverflowAfterStyleChange() override; 404 bool recalcChildOverflowAfterStyleChange() override;
405 void ensureIsReadyForPaintInvalidation() override;
405 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override; 406 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
406 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&) overri de; 407 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidatorContex t&) const override;
407 408
408 private: 409 private:
409 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); } 410 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); }
410 411
411 void paintObject(const PaintInfo&, const LayoutPoint&) const override; 412 void paintObject(const PaintInfo&, const LayoutPoint&) const override;
412 void layout() override; 413 void layout() override;
413 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override; 414 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override;
414 void computePreferredLogicalWidths() override; 415 void computePreferredLogicalWidths() override;
415 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 416 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
416 417
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 if (m_firstBody) 516 if (m_firstBody)
516 return m_firstBody; 517 return m_firstBody;
517 return m_foot; 518 return m_foot;
518 } 519 }
519 520
520 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 521 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
521 522
522 } // namespace blink 523 } // namespace blink
523 524
524 #endif // LayoutTable_h 525 #endif // LayoutTable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698