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

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

Issue 2851553002: Invalidate row/section for backgrounds when cell's geometry changes (Closed)
Patch Set: Created 3 years, 7 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, 2007, 2009, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 protected: 342 protected:
343 void StyleDidChange(StyleDifference, const ComputedStyle* old_style) override; 343 void StyleDidChange(StyleDifference, const ComputedStyle* old_style) override;
344 void ComputePreferredLogicalWidths() override; 344 void ComputePreferredLogicalWidths() override;
345 345
346 void AddLayerHitTestRects(LayerHitTestRects&, 346 void AddLayerHitTestRects(LayerHitTestRects&,
347 const PaintLayer* current_composited_layer, 347 const PaintLayer* current_composited_layer,
348 const LayoutPoint& layer_offset, 348 const LayoutPoint& layer_offset,
349 const LayoutRect& container_rect) const override; 349 const LayoutRect& container_rect) const override;
350 350
351 PaintInvalidationReason InvalidatePaintIfNeeded(
352 const PaintInvalidatorContext&) const override;
353 PaintInvalidationReason InvalidatePaintIfNeeded(
354 const PaintInvalidationState&) override;
355
351 private: 356 private:
352 bool IsOfType(LayoutObjectType type) const override { 357 bool IsOfType(LayoutObjectType type) const override {
353 return type == kLayoutObjectTableCell || LayoutBlockFlow::IsOfType(type); 358 return type == kLayoutObjectTableCell || LayoutBlockFlow::IsOfType(type);
354 } 359 }
355 360
356 void WillBeRemovedFromTree() override; 361 void WillBeRemovedFromTree() override;
357 362
358 void UpdateLogicalWidth() override; 363 void UpdateLogicalWidth() override;
359 364
360 void PaintBoxDecorationBackground(const PaintInfo&, 365 void PaintBoxDecorationBackground(const PaintInfo&,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 return ToLayoutTableCell(FirstChild()); 459 return ToLayoutTableCell(FirstChild());
455 } 460 }
456 461
457 inline LayoutTableCell* LayoutTableRow::LastCell() const { 462 inline LayoutTableCell* LayoutTableRow::LastCell() const {
458 return ToLayoutTableCell(LastChild()); 463 return ToLayoutTableCell(LastChild());
459 } 464 }
460 465
461 } // namespace blink 466 } // namespace blink
462 467
463 #endif // LayoutTableCell_h 468 #endif // LayoutTableCell_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698