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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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, 2008, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
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 28 matching lines...) Expand all
39 namespace blink { 39 namespace blink {
40 40
41 using namespace HTMLNames; 41 using namespace HTMLNames;
42 42
43 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow { 43 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow {
44 unsigned bitfields; 44 unsigned bitfields;
45 int paddings[2]; 45 int paddings[2];
46 }; 46 };
47 47
48 static_assert(sizeof(LayoutTableCell) == sizeof(SameSizeAsLayoutTableCell), "Lay outTableCell should stay small"); 48 static_assert(sizeof(LayoutTableCell) == sizeof(SameSizeAsLayoutTableCell), "Lay outTableCell should stay small");
49 static_assert(sizeof(CollapsedBorderValue) == 8, "CollapsedBorderValue should st ay small"); 49 static_assert(sizeof(CollapsedBorderValue) - sizeof(Color) <= 8, "CollapsedBorde rValue should stay small");
50 50
51 LayoutTableCell::LayoutTableCell(Element* element) 51 LayoutTableCell::LayoutTableCell(Element* element)
52 : LayoutBlockFlow(element) 52 : LayoutBlockFlow(element)
53 , m_column(unsetColumnIndex) 53 , m_column(unsetColumnIndex)
54 , m_cellWidthChanged(false) 54 , m_cellWidthChanged(false)
55 , m_intrinsicPaddingBefore(0) 55 , m_intrinsicPaddingBefore(0)
56 , m_intrinsicPaddingAfter(0) 56 , m_intrinsicPaddingAfter(0)
57 { 57 {
58 // We only update the flags when notified of DOM changes in colSpanOrRowSpan Changed() 58 // We only update the flags when notified of DOM changes in colSpanOrRowSpan Changed()
59 // so we need to set their initial values here in case something asks for co lSpan()/rowSpan() before then. 59 // so we need to set their initial values here in case something asks for co lSpan()/rowSpan() before then.
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localR ect) const 1014 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localR ect) const
1015 { 1015 {
1016 // If this object has layer, the area of collapsed borders should be transpa rent 1016 // If this object has layer, the area of collapsed borders should be transpa rent
1017 // to expose the collapsed borders painted on the underlying layer. 1017 // to expose the collapsed borders painted on the underlying layer.
1018 if (hasLayer() && table()->collapseBorders()) 1018 if (hasLayer() && table()->collapseBorders())
1019 return false; 1019 return false;
1020 return LayoutBlockFlow::backgroundIsKnownToBeOpaqueInRect(localRect); 1020 return LayoutBlockFlow::backgroundIsKnownToBeOpaqueInRect(localRect);
1021 } 1021 }
1022 1022
1023 } // namespace blink 1023 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutScrollbarTheme.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698