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

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

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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/ObjectPainter.h" 5 #include "core/paint/ObjectPainter.h"
6 6
7 #include "core/layout/LayoutBlock.h" 7 #include "core/layout/LayoutBlock.h"
8 #include "core/layout/LayoutInline.h" 8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/LayoutObject.h" 9 #include "core/layout/LayoutObject.h"
10 #include "core/layout/LayoutTheme.h" 10 #include "core/layout/LayoutTheme.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 KURL url = toElement(m_layoutObject.node())->hrefURL(); 274 KURL url = toElement(m_layoutObject.node())->hrefURL();
275 if (!url.isValid()) 275 if (!url.isValid())
276 return; 276 return;
277 277
278 Vector<LayoutRect> visualOverflowRects; 278 Vector<LayoutRect> visualOverflowRects;
279 m_layoutObject.addElementVisualOverflowRects(visualOverflowRects, paintOffse t); 279 m_layoutObject.addElementVisualOverflowRects(visualOverflowRects, paintOffse t);
280 IntRect rect = pixelSnappedIntRect(unionRect(visualOverflowRects)); 280 IntRect rect = pixelSnappedIntRect(unionRect(visualOverflowRects));
281 if (rect.isEmpty()) 281 if (rect.isEmpty())
282 return; 282 return;
283 283
284 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.contex t, m_layoutObject, DisplayItem::PrintedContentPDFURLRect)) 284 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.contex t, m_layoutObject, DisplayItem::kPrintedContentPDFURLRect))
285 return; 285 return;
286 286
287 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutObject, Disp layItem::PrintedContentPDFURLRect, rect); 287 LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutObject, Disp layItem::kPrintedContentPDFURLRect, rect);
288 if (url.hasFragmentIdentifier() && equalIgnoringFragmentIdentifier(url, m_la youtObject.document().baseURL())) { 288 if (url.hasFragmentIdentifier() && equalIgnoringFragmentIdentifier(url, m_la youtObject.document().baseURL())) {
289 String fragmentName = url.fragmentIdentifier(); 289 String fragmentName = url.fragmentIdentifier();
290 if (m_layoutObject.document().findAnchor(fragmentName)) 290 if (m_layoutObject.document().findAnchor(fragmentName))
291 paintInfo.context.setURLFragmentForRect(fragmentName, rect); 291 paintInfo.context.setURLFragmentForRect(fragmentName, rect);
292 return; 292 return;
293 } 293 }
294 paintInfo.context.setURLForRect(url, rect); 294 paintInfo.context.setURLForRect(url, rect);
295 } 295 }
296 296
297 void ObjectPainter::drawLineForBoxSide(GraphicsContext& graphicsContext, int x1, int y1, int x2, int y2, 297 void ObjectPainter::drawLineForBoxSide(GraphicsContext& graphicsContext, int x1, int y1, int x2, int y2,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 m_layoutObject.paint(info, paintOffset); 564 m_layoutObject.paint(info, paintOffset);
565 info.phase = PaintPhaseFloat; 565 info.phase = PaintPhaseFloat;
566 m_layoutObject.paint(info, paintOffset); 566 m_layoutObject.paint(info, paintOffset);
567 info.phase = PaintPhaseForeground; 567 info.phase = PaintPhaseForeground;
568 m_layoutObject.paint(info, paintOffset); 568 m_layoutObject.paint(info, paintOffset);
569 info.phase = PaintPhaseOutline; 569 info.phase = PaintPhaseOutline;
570 m_layoutObject.paint(info, paintOffset); 570 m_layoutObject.paint(info, paintOffset);
571 } 571 }
572 572
573 } // namespace blink 573 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698