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

Side by Side Diff: sky/engine/core/rendering/RenderView.cpp

Issue 867653005: Remove outline painting on inlines. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 CompositeOperator previousOperator = paintInfo.context->compositeOpe ration(); 241 CompositeOperator previousOperator = paintInfo.context->compositeOpe ration();
242 paintInfo.context->setCompositeOperation(CompositeCopy); 242 paintInfo.context->setCompositeOperation(CompositeCopy);
243 paintInfo.context->fillRect(paintInfo.rect, baseColor); 243 paintInfo.context->fillRect(paintInfo.rect, baseColor);
244 paintInfo.context->setCompositeOperation(previousOperator); 244 paintInfo.context->setCompositeOperation(previousOperator);
245 } else { 245 } else {
246 paintInfo.context->clearRect(paintInfo.rect); 246 paintInfo.context->clearRect(paintInfo.rect);
247 } 247 }
248 } 248 }
249 } 249 }
250 250
251 void RenderView::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumu latedOffset) const
252 {
253 rects.append(pixelSnappedIntRect(accumulatedOffset, layer()->size()));
254 }
255
256 void RenderView::absoluteQuads(Vector<FloatQuad>& quads) const 251 void RenderView::absoluteQuads(Vector<FloatQuad>& quads) const
257 { 252 {
258 quads.append(FloatRect(FloatPoint(), layer()->size())); 253 quads.append(FloatRect(FloatPoint(), layer()->size()));
259 } 254 }
260 255
261 static RenderObject* rendererAfterPosition(RenderObject* object, unsigned offset ) 256 static RenderObject* rendererAfterPosition(RenderObject* object, unsigned offset )
262 { 257 {
263 if (!object) 258 if (!object)
264 return 0; 259 return 0;
265 260
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 m_iframes.remove(iframe); 471 m_iframes.remove(iframe);
477 } 472 }
478 473
479 void RenderView::updateIFramesAfterLayout() 474 void RenderView::updateIFramesAfterLayout()
480 { 475 {
481 for (auto& iframe: m_iframes) 476 for (auto& iframe: m_iframes)
482 iframe->updateWidgetBounds(); 477 iframe->updateWidgetBounds();
483 } 478 }
484 479
485 } // namespace blink 480 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698