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

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

Issue 867653005: Remove outline painting on inlines. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 size_t n = quads.size(); 1008 size_t n = quads.size();
1009 if (!n) 1009 if (!n)
1010 return IntRect(); 1010 return IntRect();
1011 1011
1012 IntRect result = quads[0].enclosingBoundingBox(); 1012 IntRect result = quads[0].enclosingBoundingBox();
1013 for (size_t i = 1; i < n; ++i) 1013 for (size_t i = 1; i < n; ++i)
1014 result.unite(quads[i].enclosingBoundingBox()); 1014 result.unite(quads[i].enclosingBoundingBox());
1015 return result; 1015 return result;
1016 } 1016 }
1017 1017
1018 IntRect RenderObject::absoluteBoundingBoxRectIgnoringTransforms() const
1019 {
1020 FloatPoint absPos = localToAbsolute();
1021 Vector<IntRect> rects;
1022 absoluteRects(rects, flooredLayoutPoint(absPos));
1023
1024 size_t n = rects.size();
1025 if (!n)
1026 return IntRect();
1027
1028 LayoutRect result = rects[0];
1029 for (size_t i = 1; i < n; ++i)
1030 result.unite(rects[i]);
1031 return pixelSnappedIntRect(result);
1032 }
1033
1034 void RenderObject::absoluteFocusRingQuads(Vector<FloatQuad>& quads) 1018 void RenderObject::absoluteFocusRingQuads(Vector<FloatQuad>& quads)
1035 { 1019 {
1036 Vector<IntRect> rects; 1020 Vector<IntRect> rects;
1037 const RenderLayerModelObject* container = containerForPaintInvalidation(); 1021 const RenderLayerModelObject* container = containerForPaintInvalidation();
1038 addFocusRingRects(rects, LayoutPoint(localToContainerPoint(FloatPoint(), con tainer)), container); 1022 addFocusRingRects(rects, LayoutPoint(localToContainerPoint(FloatPoint(), con tainer)), container);
1039 size_t count = rects.size(); 1023 size_t count = rects.size();
1040 for (size_t i = 0; i < count; ++i) 1024 for (size_t i = 0; i < count; ++i)
1041 quads.append(container->localToAbsoluteQuad(FloatQuad(rects[i]))); 1025 quads.append(container->localToAbsoluteQuad(FloatQuad(rects[i])));
1042 } 1026 }
1043 1027
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 { 2060 {
2077 if (object1) { 2061 if (object1) {
2078 const blink::RenderObject* root = object1; 2062 const blink::RenderObject* root = object1;
2079 while (root->parent()) 2063 while (root->parent())
2080 root = root->parent(); 2064 root = root->parent();
2081 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 2065 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
2082 } 2066 }
2083 } 2067 }
2084 2068
2085 #endif 2069 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698