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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableCol.cpp

Issue 1728313003: Split ImageResourceClient into ResourceClient and ImageResourceObserver [2/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and reflect comment 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 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // FIXME: Find a better way to do this, e.g., need to paint invalidate all t he cells that we 114 // FIXME: Find a better way to do this, e.g., need to paint invalidate all t he cells that we
115 // might have propagated a background color or borders into. 115 // might have propagated a background color or borders into.
116 // FIXME: check for paintInvalidationContainer each time here? 116 // FIXME: check for paintInvalidationContainer each time here?
117 117
118 LayoutTable* parentTable = table(); 118 LayoutTable* parentTable = table();
119 if (!parentTable) 119 if (!parentTable)
120 return LayoutRect(); 120 return LayoutRect();
121 return parentTable->clippedOverflowRectForPaintInvalidation(paintInvalidatio nContainer, paintInvalidationState); 121 return parentTable->clippedOverflowRectForPaintInvalidation(paintInvalidatio nContainer, paintInvalidationState);
122 } 122 }
123 123
124 void LayoutTableCol::imageChanged(WrappedImagePtr, const IntRect*) 124 void LayoutTableCol::imageChanged(bool, WrappedImagePtr, const IntRect*)
125 { 125 {
126 // FIXME: Issue paint invalidation of only the rect the image paints in. 126 // FIXME: Issue paint invalidation of only the rect the image paints in.
127 setShouldDoFullPaintInvalidation(); 127 setShouldDoFullPaintInvalidation();
128 } 128 }
129 129
130 void LayoutTableCol::clearPreferredLogicalWidthsDirtyBits() 130 void LayoutTableCol::clearPreferredLogicalWidthsDirtyBits()
131 { 131 {
132 clearPreferredLogicalWidthsDirty(); 132 clearPreferredLogicalWidthsDirty();
133 133
134 for (LayoutObject* child = firstChild(); child; child = child->nextSibling() ) 134 for (LayoutObject* child = firstChild(); child; child = child->nextSibling() )
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 return style()->borderStart(); 188 return style()->borderStart();
189 } 189 }
190 190
191 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel l* cell) const 191 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel l* cell) const
192 { 192 {
193 ASSERT_UNUSED(cell, table()->colElementAtAbsoluteColumn(cell->absoluteColumn Index() - 1).innermostColOrColGroup() == this); 193 ASSERT_UNUSED(cell, table()->colElementAtAbsoluteColumn(cell->absoluteColumn Index() - 1).innermostColOrColGroup() == this);
194 return style()->borderEnd(); 194 return style()->borderEnd();
195 } 195 }
196 196
197 } // namespace blink 197 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698