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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 774793002: Remove scrollIntoView* API. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // This getter takes care of synchronizing all attributes before returning t he 111 // This getter takes care of synchronizing all attributes before returning t he
112 // AttributeCollection. If the Element has no attributes, an empty Attribute Collection 112 // AttributeCollection. If the Element has no attributes, an empty Attribute Collection
113 // will be returned. This is not a trivial getter and its return value shoul d be cached 113 // will be returned. This is not a trivial getter and its return value shoul d be cached
114 // for performance. 114 // for performance.
115 AttributeCollection attributes() const; 115 AttributeCollection attributes() const;
116 // This variant will not update the potentially invalid attributes. To be us ed when not interested 116 // This variant will not update the potentially invalid attributes. To be us ed when not interested
117 // in style attribute or one of the SVG animation attributes. 117 // in style attribute or one of the SVG animation attributes.
118 AttributeCollection attributesWithoutUpdate() const; 118 AttributeCollection attributesWithoutUpdate() const;
119 119
120 void scrollIntoView(bool alignToTop = true);
121 void scrollIntoViewIfNeeded(bool centerIfNeeded = true);
122
123 int offsetLeft(); 120 int offsetLeft();
124 int offsetTop(); 121 int offsetTop();
125 int offsetWidth(); 122 int offsetWidth();
126 int offsetHeight(); 123 int offsetHeight();
127 124
128 Element* offsetParent(); 125 Element* offsetParent();
129 int clientLeft(); 126 int clientLeft();
130 int clientTop(); 127 int clientTop();
131 int clientWidth(); 128 int clientWidth();
132 int clientHeight(); 129 int clientHeight();
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 static PassRefPtr<T> create(const QualifiedName&, Document&) 587 static PassRefPtr<T> create(const QualifiedName&, Document&)
591 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 588 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
592 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 589 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
593 { \ 590 { \
594 return adoptRef(new T(tagName, document)); \ 591 return adoptRef(new T(tagName, document)); \
595 } 592 }
596 593
597 } // namespace 594 } // namespace
598 595
599 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 596 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698