| Index: sky/engine/core/dom/Element.cpp
|
| diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
|
| index 7c5b43a45434bd6e919a9cb01eed3d413873e0ab..c450e8eecb5fd9e929a8b70b635fda3dcff43feb 100644
|
| --- a/sky/engine/core/dom/Element.cpp
|
| +++ b/sky/engine/core/dom/Element.cpp
|
| @@ -556,30 +556,6 @@ int Element::scrollHeight()
|
| return 0;
|
| }
|
|
|
| -IntRect Element::boundsInRootViewSpace()
|
| -{
|
| - document().updateLayoutIgnorePendingStylesheets();
|
| -
|
| - FrameView* view = document().view();
|
| - if (!view)
|
| - return IntRect();
|
| -
|
| - Vector<FloatQuad> quads;
|
| - // Get the bounding rectangle from the box model.
|
| - if (renderBoxModelObject())
|
| - renderBoxModelObject()->absoluteQuads(quads);
|
| -
|
| - if (quads.isEmpty())
|
| - return IntRect();
|
| -
|
| - IntRect result = quads[0].enclosingBoundingBox();
|
| - for (size_t i = 1; i < quads.size(); ++i)
|
| - result.unite(quads[i].enclosingBoundingBox());
|
| -
|
| - result = view->contentsToRootView(result);
|
| - return result;
|
| -}
|
| -
|
| PassRefPtr<ClientRectList> Element::getClientRects()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
| @@ -618,14 +594,6 @@ PassRefPtr<ClientRect> Element::getBoundingClientRect()
|
| return ClientRect::create(result);
|
| }
|
|
|
| -IntRect Element::screenRect() const
|
| -{
|
| - if (!renderer())
|
| - return IntRect();
|
| - // FIXME: this should probably respect transforms
|
| - return document().view()->contentsToScreen(renderer()->absoluteBoundingBoxRectIgnoringTransforms());
|
| -}
|
| -
|
| void Element::setAttribute(const AtomicString& localName, const AtomicString& value, ExceptionState& exceptionState)
|
| {
|
| if (!Document::isValidName(localName)) {
|
|
|