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

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

Issue 1391753005: (WIP) Invalidation during painting (for synchronized painting) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 const char* name() const override { return "LayoutTable"; } 368 const char* name() const override { return "LayoutTable"; }
369 369
370 // Whether a table has opaque foreground depends on many factors, e.g. borde r spacing, missing cells, etc. 370 // Whether a table has opaque foreground depends on many factors, e.g. borde r spacing, missing cells, etc.
371 // For simplicity, just conservatively assume foreground of all tables are n ot opaque. 371 // For simplicity, just conservatively assume foreground of all tables are n ot opaque.
372 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; } 372 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, unsigned) const ov erride { return false; }
373 373
374 protected: 374 protected:
375 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 375 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
376 void simplifiedNormalFlowLayout() override; 376 void simplifiedNormalFlowLayout() override;
377 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& paintInvalidationContainer) override; 377 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& paintInvalidationContainer) override;
378 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override;
379 378
380 private: 379 private:
381 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); } 380 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); }
382 381
383 void paintObject(const PaintInfo&, const LayoutPoint&) const override; 382 void paintObject(const PaintInfo&, const LayoutPoint&) const override;
384 void layout() override; 383 void layout() override;
385 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override; 384 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override;
386 void computePreferredLogicalWidths() override; 385 void computePreferredLogicalWidths() override;
387 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 386 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
388 387
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 if (m_firstBody) 501 if (m_firstBody)
503 return m_firstBody; 502 return m_firstBody;
504 return m_foot; 503 return m_foot;
505 } 504 }
506 505
507 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 506 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
508 507
509 } // namespace blink 508 } // namespace blink
510 509
511 #endif // LayoutTable_h 510 #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