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

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

Issue 1315213002: (WIP) Paint invalidation for slimming paint v2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutTable.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, 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 } 278 }
279 279
280 void subtractCaptionRect(LayoutRect&) const; 280 void subtractCaptionRect(LayoutRect&) const;
281 281
282 const char* name() const override { return "LayoutTable"; } 282 const char* name() const override { return "LayoutTable"; }
283 283
284 protected: 284 protected:
285 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 285 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
286 void simplifiedNormalFlowLayout() override; 286 void simplifiedNormalFlowLayout() override;
287 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& paintInvalidationContainer) override; 287 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject& paintInvalidationContainer) override;
288 PaintInvalidationReason invalidatePaintIfNeededForSlimmingPaintV2(const Layo utPoint& newPaintOffset) override;
288 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; 289 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override;
289 290
290 private: 291 private:
291 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); } 292 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); }
292 293
293 void paintObject(const PaintInfo&, const LayoutPoint&) override; 294 void paintObject(const PaintInfo&, const LayoutPoint&) override;
294 void layout() override; 295 void layout() override;
295 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override; 296 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override;
296 void computePreferredLogicalWidths() override; 297 void computePreferredLogicalWidths() override;
297 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 298 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 if (m_firstBody) 367 if (m_firstBody)
367 return m_firstBody; 368 return m_firstBody;
368 return m_foot; 369 return m_foot;
369 } 370 }
370 371
371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 372 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
372 373
373 } // namespace blink 374 } // namespace blink
374 375
375 #endif // LayoutTable_h 376 #endif // LayoutTable_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698