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

Side by Side Diff: third_party/WebKit/Source/core/paint/TablePainter.cpp

Issue 2022563002: Remove display item scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 #include "core/paint/TablePainter.h" 5 #include "core/paint/TablePainter.h"
6 6
7 #include "core/layout/LayoutTable.h" 7 #include "core/layout/LayoutTable.h"
8 #include "core/layout/LayoutTableSection.h" 8 #include "core/layout/LayoutTableSection.h"
9 #include "core/style/CollapsedBorderValue.h" 9 #include "core/style/CollapsedBorderValue.h"
10 #include "core/paint/BoxClipper.h" 10 #include "core/paint/BoxClipper.h"
11 #include "core/paint/BoxPainter.h" 11 #include "core/paint/BoxPainter.h"
12 #include "core/paint/LayoutObjectDrawingRecorder.h" 12 #include "core/paint/LayoutObjectDrawingRecorder.h"
13 #include "core/paint/ObjectPainter.h" 13 #include "core/paint/ObjectPainter.h"
14 #include "core/paint/PaintInfo.h" 14 #include "core/paint/PaintInfo.h"
15 #include "core/paint/ScopeRecorder.h"
16 #include "core/paint/TableSectionPainter.h" 15 #include "core/paint/TableSectionPainter.h"
17 16
18 namespace blink { 17 namespace blink {
19 18
20 void TablePainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) 19 void TablePainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset)
21 { 20 {
22 PaintPhase paintPhase = paintInfo.phase; 21 PaintPhase paintPhase = paintInfo.phase;
23 22
24 if (shouldPaintSelfBlockBackground(paintPhase)) { 23 if (shouldPaintSelfBlockBackground(paintPhase)) {
25 paintBoxDecorationBackground(paintInfo, paintOffset); 24 paintBoxDecorationBackground(paintInfo, paintOffset);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return; 78 return;
80 79
81 LayoutRect rect(paintOffset, m_layoutTable.size()); 80 LayoutRect rect(paintOffset, m_layoutTable.size());
82 m_layoutTable.subtractCaptionRect(rect); 81 m_layoutTable.subtractCaptionRect(rect);
83 82
84 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable, paint Info.phase, rect); 83 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutTable, paint Info.phase, rect);
85 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect); 84 BoxPainter(m_layoutTable).paintMaskImages(paintInfo, rect);
86 } 85 }
87 86
88 } // namespace blink 87 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698