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

Side by Side Diff: sky/engine/core/rendering/RenderBlock.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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 } 1720 }
1721 1721
1722 void RenderBlock::clearTruncation() 1722 void RenderBlock::clearTruncation()
1723 { 1723 {
1724 for (RenderObject* obj = firstChild(); obj; obj = obj->nextSibling()) { 1724 for (RenderObject* obj = firstChild(); obj; obj = obj->nextSibling()) {
1725 if (shouldCheckLines(obj)) 1725 if (shouldCheckLines(obj))
1726 toRenderBlock(obj)->clearTruncation(); 1726 toRenderBlock(obj)->clearTruncation();
1727 } 1727 }
1728 } 1728 }
1729 1729
1730 void RenderBlock::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accum ulatedOffset) const
1731 {
1732 rects.append(pixelSnappedIntRect(accumulatedOffset, size()));
1733 }
1734
1735 void RenderBlock::absoluteQuads(Vector<FloatQuad>& quads) const 1730 void RenderBlock::absoluteQuads(Vector<FloatQuad>& quads) const
1736 { 1731 {
1737 quads.append(RenderBox::localToAbsoluteQuad(FloatRect(0, 0, width().toFloat( ), height().toFloat()), 0 /* mode */)); 1732 quads.append(RenderBox::localToAbsoluteQuad(FloatRect(0, 0, width().toFloat( ), height().toFloat()), 0 /* mode */));
1738 } 1733 }
1739 1734
1740 void RenderBlock::updateHitTestResult(HitTestResult& result, const LayoutPoint& point) 1735 void RenderBlock::updateHitTestResult(HitTestResult& result, const LayoutPoint& point)
1741 { 1736 {
1742 if (result.innerNode()) 1737 if (result.innerNode())
1743 return; 1738 return;
1744 1739
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 1931 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
1937 { 1932 {
1938 showRenderObject(); 1933 showRenderObject();
1939 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 1934 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
1940 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 1935 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
1941 } 1936 }
1942 1937
1943 #endif 1938 #endif
1944 1939
1945 } // namespace blink 1940 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698