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: third_party/WebKit/Source/core/dom/Element.h

Issue 2911103002: Revert of Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Created 3 years, 6 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 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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class Image; 58 class Image;
59 class InputDeviceCapabilities; 59 class InputDeviceCapabilities;
60 class Locale; 60 class Locale;
61 class MutableStylePropertySet; 61 class MutableStylePropertySet;
62 class NamedNodeMap; 62 class NamedNodeMap;
63 class ElementIntersectionObserverData; 63 class ElementIntersectionObserverData;
64 class PseudoElement; 64 class PseudoElement;
65 class PseudoStyleRequest; 65 class PseudoStyleRequest;
66 class ResizeObservation; 66 class ResizeObservation;
67 class ResizeObserver; 67 class ResizeObserver;
68 class ScrollIntoViewOptions;
69 class ScrollIntoViewOptionsOrBoolean;
70 class ScrollState; 68 class ScrollState;
71 class ScrollStateCallback; 69 class ScrollStateCallback;
72 class ScrollToOptions; 70 class ScrollToOptions;
73 class ShadowRoot; 71 class ShadowRoot;
74 class ShadowRootInit; 72 class ShadowRootInit;
75 class StylePropertySet; 73 class StylePropertySet;
76 class StylePropertyMap; 74 class StylePropertyMap;
77 class V0CustomElementDefinition; 75 class V0CustomElementDefinition;
78 76
79 enum SpellcheckAttributeState { 77 enum SpellcheckAttributeState {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // This getter takes care of synchronizing all attributes before returning the 220 // This getter takes care of synchronizing all attributes before returning the
223 // AttributeCollection. If the Element has no attributes, an empty 221 // AttributeCollection. If the Element has no attributes, an empty
224 // AttributeCollection will be returned. This is not a trivial getter and its 222 // AttributeCollection will be returned. This is not a trivial getter and its
225 // return value should be cached for performance. 223 // return value should be cached for performance.
226 AttributeCollection Attributes() const; 224 AttributeCollection Attributes() const;
227 // This variant will not update the potentially invalid attributes. To be used 225 // This variant will not update the potentially invalid attributes. To be used
228 // when not interested in style attribute or one of the SVG animation 226 // when not interested in style attribute or one of the SVG animation
229 // attributes. 227 // attributes.
230 AttributeCollection AttributesWithoutUpdate() const; 228 AttributeCollection AttributesWithoutUpdate() const;
231 229
232 void scrollIntoView(ScrollIntoViewOptionsOrBoolean);
233 void scrollIntoView(bool align_to_top = true); 230 void scrollIntoView(bool align_to_top = true);
234 void scrollIntoViewWithOptions(const ScrollIntoViewOptions&);
235 void scrollIntoViewIfNeeded(bool center_if_needed = true); 231 void scrollIntoViewIfNeeded(bool center_if_needed = true);
236 232
237 int OffsetLeft(); 233 int OffsetLeft();
238 int OffsetTop(); 234 int OffsetTop();
239 int OffsetWidth(); 235 int OffsetWidth();
240 int OffsetHeight(); 236 int OffsetHeight();
241 237
242 Element* OffsetParent(); 238 Element* OffsetParent();
243 int clientLeft(); 239 int clientLeft();
244 int clientTop(); 240 int clientTop();
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1239 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1244 static T* Create(const QualifiedName&, Document&) 1240 static T* Create(const QualifiedName&, Document&)
1245 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1241 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1246 T* T::Create(const QualifiedName& tagName, Document& document) { \ 1242 T* T::Create(const QualifiedName& tagName, Document& document) { \
1247 return new T(tagName, document); \ 1243 return new T(tagName, document); \
1248 } 1244 }
1249 1245
1250 } // namespace blink 1246 } // namespace blink
1251 1247
1252 #endif // Element_h 1248 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698