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

Side by Side Diff: third_party/WebKit/Source/core/paint/TableCellPainter.h

Issue 1549693002: Optimize collapsed border painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TableCellPainter_h 5 #ifndef TableCellPainter_h
6 #define TableCellPainter_h 6 #define TableCellPainter_h
7 7
8 #include "core/style/CollapsedBorderValue.h" 8 #include "core/style/CollapsedBorderValue.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 19 matching lines...) Expand all
30 void paintBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const LayoutObject* backgroundObject, DisplayItem::Type); 30 void paintBackgroundsBehindCell(const PaintInfo&, const LayoutPoint&, const LayoutObject* backgroundObject, DisplayItem::Type);
31 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paint Offset); 31 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paint Offset);
32 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); 32 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset);
33 33
34 enum PaintBoundOffsetBehavior { AddOffsetFromParent, DoNotAddOffsetFromParen t }; 34 enum PaintBoundOffsetBehavior { AddOffsetFromParent, DoNotAddOffsetFromParen t };
35 // Returns the bonds of the table cell for painting, offset by paintOffset, and if desired, the offset from the cell 35 // Returns the bonds of the table cell for painting, offset by paintOffset, and if desired, the offset from the cell
36 // to its parent. 36 // to its parent.
37 LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehav ior); 37 LayoutRect paintBounds(const LayoutPoint& paintOffset, PaintBoundOffsetBehav ior);
38 38
39 private: 39 private:
40 const CollapsedBorderValue* cachedCollapsedLeftBorder(const ComputedStyle&) const;
41 const CollapsedBorderValue* cachedCollapsedRightBorder(const ComputedStyle&) const;
42 const CollapsedBorderValue* cachedCollapsedTopBorder(const ComputedStyle&) c onst;
43 const CollapsedBorderValue* cachedCollapsedBottomBorder(const ComputedStyle& ) const;
44
45 const LayoutTableCell& m_layoutTableCell; 40 const LayoutTableCell& m_layoutTableCell;
46 }; 41 };
47 42
48 } // namespace blink 43 } // namespace blink
49 44
50 #endif // TableCellPainter_h 45 #endif // TableCellPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698