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

Unified Diff: sky/engine/core/dom/Element.cpp

Issue 684353002: Remove more stuff from Widget. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/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)) {

Powered by Google App Engine
This is Rietveld 408576698