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

Unified Diff: sky/engine/core/dom/Node.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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index c6986da84f8b71cfffa2d28006aec482cfac90b5..64c315f99f415a11a8c8d37e17c59aaee9bf8e5f 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -433,27 +433,6 @@ LayoutRect Node::boundingBox() const
return LayoutRect();
}
-bool Node::hasNonEmptyBoundingBox() const
-{
- // Before calling absoluteRects, check for the common case where the renderer
- // is non-empty, since this is a faster check and almost always returns true.
- RenderBoxModelObject* box = renderBoxModelObject();
- if (!box)
- return false;
- if (!box->borderBoundingBox().isEmpty())
- return true;
-
- Vector<IntRect> rects;
- FloatPoint absPos = renderer()->localToAbsolute();
- renderer()->absoluteRects(rects, flooredLayoutPoint(absPos));
- size_t n = rects.size();
- for (size_t i = 0; i < n; ++i)
- if (!rects[i].isEmpty())
- return true;
-
- return false;
-}
-
void Node::recalcDistribution()
{
if (isElementNode()) {

Powered by Google App Engine
This is Rietveld 408576698