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

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

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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 "config.h" 5 #include "config.h"
6 #include "core/paint/LineBoxListPainter.h" 6 #include "core/paint/LineBoxListPainter.h"
7 7
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/LayoutInline.h" 9 #include "core/layout/LayoutInline.h"
10 #include "core/layout/api/LineLayoutBoxModel.h" 10 #include "core/layout/api/LineLayoutBoxModel.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 continue; 71 continue;
72 if (child->isInlineFlowBox()) 72 if (child->isInlineFlowBox())
73 invalidateLineBoxPaintOffsetsInternal(paintController, toInlineFlowB ox(child)); 73 invalidateLineBoxPaintOffsetsInternal(paintController, toInlineFlowB ox(child));
74 else 74 else
75 paintController.invalidatePaintOffset(*child); 75 paintController.invalidatePaintOffset(*child);
76 } 76 }
77 } 77 }
78 78
79 void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInf o) const 79 void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInf o) const
80 { 80 {
81 PaintController& paintController = paintInfo.context->paintController(); 81 PaintController& paintController = paintInfo.context.paintController();
82 for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr-> nextLineBox()) 82 for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr-> nextLineBox())
83 invalidateLineBoxPaintOffsetsInternal(paintController, curr); 83 invalidateLineBoxPaintOffsetsInternal(paintController, curr);
84 } 84 }
85 85
86 } // namespace blink 86 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698