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

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

Issue 1379213002: Remove LayoutTable::m_currentBorder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 5 years, 2 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 CollapsedBorderValue afterBorder = computeCollapsedAfterBorder(); 952 CollapsedBorderValue afterBorder = computeCollapsedAfterBorder();
953 LayoutTableSection* section = this->section(); 953 LayoutTableSection* section = this->section();
954 bool changed = section->setCachedCollapsedBorder(this, CBSStart, startBorder ); 954 bool changed = section->setCachedCollapsedBorder(this, CBSStart, startBorder );
955 changed |= section->setCachedCollapsedBorder(this, CBSEnd, endBorder); 955 changed |= section->setCachedCollapsedBorder(this, CBSEnd, endBorder);
956 changed |= section->setCachedCollapsedBorder(this, CBSBefore, beforeBorder); 956 changed |= section->setCachedCollapsedBorder(this, CBSBefore, beforeBorder);
957 changed |= section->setCachedCollapsedBorder(this, CBSAfter, afterBorder); 957 changed |= section->setCachedCollapsedBorder(this, CBSAfter, afterBorder);
958 958
959 // In slimming paint mode, we need to invalidate all cells with collapsed bo rder changed. 959 // In slimming paint mode, we need to invalidate all cells with collapsed bo rder changed.
960 // FIXME: Need a way to invalidate/repaint the borders only. crbug.com/45109 0#c5. 960 // FIXME: Need a way to invalidate/repaint the borders only. crbug.com/45109 0#c5.
961 if (changed) 961 if (changed)
962 invalidateDisplayItemClient(*this); 962 table()->invalidateDisplayItemClient(*this);
963 963
964 addBorderStyle(borderValues, startBorder); 964 addBorderStyle(borderValues, startBorder);
965 addBorderStyle(borderValues, endBorder); 965 addBorderStyle(borderValues, endBorder);
966 addBorderStyle(borderValues, beforeBorder); 966 addBorderStyle(borderValues, beforeBorder);
967 addBorderStyle(borderValues, afterBorder); 967 addBorderStyle(borderValues, afterBorder);
968 } 968 }
969 969
970 static int compareBorderValuesForQSort(const void* pa, const void* pb) 970 static int compareBorderValuesForQSort(const void* pa, const void* pb)
971 { 971 {
972 const CollapsedBorderValue* a = static_cast<const CollapsedBorderValue*>(pa) ; 972 const CollapsedBorderValue* a = static_cast<const CollapsedBorderValue*>(pa) ;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 1031
1032 LayoutTableCell* LayoutTableCell::createAnonymousWithParent(const LayoutObject* parent) 1032 LayoutTableCell* LayoutTableCell::createAnonymousWithParent(const LayoutObject* parent)
1033 { 1033 {
1034 LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->documen t()); 1034 LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->documen t());
1035 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisp lay(parent->styleRef(), TABLE_CELL); 1035 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisp lay(parent->styleRef(), TABLE_CELL);
1036 newCell->setStyle(newStyle.release()); 1036 newCell->setStyle(newStyle.release());
1037 return newCell; 1037 return newCell;
1038 } 1038 }
1039 1039
1040 } // namespace blink 1040 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/paint/PaintPhase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698