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

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

Issue 1809643008: Adding or changing any of box-shadow, outline, or border-image-outset does not need a layout.. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 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
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
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 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override; 405 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
405 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&) overri de; 406 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&) overri de;
406 407
407 private: 408 private:
408 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); } 409 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTable || LayoutBlock::isOfType(type); }
409 410
410 void paintObject(const PaintInfo&, const LayoutPoint&) const override; 411 void paintObject(const PaintInfo&, const LayoutPoint&) const override;
411 void layout() override; 412 void layout() override;
412 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override; 413 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) const override;
413 void computePreferredLogicalWidths() override; 414 void computePreferredLogicalWidths() override;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 if (m_firstBody) 515 if (m_firstBody)
515 return m_firstBody; 516 return m_firstBody;
516 return m_foot; 517 return m_foot;
517 } 518 }
518 519
519 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 520 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
520 521
521 } // namespace blink 522 } // namespace blink
522 523
523 #endif // LayoutTable_h 524 #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