| 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()) {
|
|
|