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

Side by Side Diff: sky/engine/core/dom/ContainerNode.cpp

Issue 646273006: Get rid of ScrollView. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 years, 1 month 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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 point.moveBy(box->location()); 824 point.moveBy(box->location());
825 } 825 }
826 point = o->container()->localToAbsolute(point, UseTransforms); 826 point = o->container()->localToAbsolute(point, UseTransforms);
827 return true; 827 return true;
828 } 828 }
829 } 829 }
830 830
831 // If the target doesn't have any children or siblings that could be used to calculate the scroll position, we must be 831 // If the target doesn't have any children or siblings that could be used to calculate the scroll position, we must be
832 // at the end of the document. Scroll to the bottom. FIXME: who said anythin g about scrolling? 832 // at the end of the document. Scroll to the bottom. FIXME: who said anythin g about scrolling?
833 if (!o && document().view()) { 833 if (!o && document().view()) {
834 point = FloatPoint(0, document().view()->contentsHeight()); 834 point = FloatPoint(0, document().view()->height());
835 return true; 835 return true;
836 } 836 }
837 return false; 837 return false;
838 } 838 }
839 839
840 bool ContainerNode::getLowerRightCorner(FloatPoint& point) const 840 bool ContainerNode::getLowerRightCorner(FloatPoint& point) const
841 { 841 {
842 if (!renderer()) 842 if (!renderer())
843 return false; 843 return false;
844 844
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 return true; 1052 return true;
1053 1053
1054 if (node->isElementNode() && toElement(node)->shadow()) 1054 if (node->isElementNode() && toElement(node)->shadow())
1055 return true; 1055 return true;
1056 1056
1057 return false; 1057 return false;
1058 } 1058 }
1059 #endif 1059 #endif
1060 1060
1061 } // namespace blink 1061 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/editing/EditorCommand.cpp » ('j') | sky/engine/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698