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

Side by Side Diff: Source/core/dom/Element.h

Issue 850443002: Scroll Customization Prototype (Not for review, WIP) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase / cleanup / minor bug fixes Created 5 years, 9 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class ElementRareData; 53 class ElementRareData;
54 class ElementShadow; 54 class ElementShadow;
55 class ExceptionState; 55 class ExceptionState;
56 class Image; 56 class Image;
57 class InputMethodContext; 57 class InputMethodContext;
58 class IntSize; 58 class IntSize;
59 class Locale; 59 class Locale;
60 class MutableStylePropertySet; 60 class MutableStylePropertySet;
61 class PropertySetCSSStyleDeclaration; 61 class PropertySetCSSStyleDeclaration;
62 class PseudoElement; 62 class PseudoElement;
63 class ScrollState;
63 class ScrollToOptions; 64 class ScrollToOptions;
64 class ShadowRoot; 65 class ShadowRoot;
65 class StylePropertySet; 66 class StylePropertySet;
66 67
67 enum SpellcheckAttributeState { 68 enum SpellcheckAttributeState {
68 SpellcheckAttributeTrue, 69 SpellcheckAttributeTrue,
69 SpellcheckAttributeFalse, 70 SpellcheckAttributeFalse,
70 SpellcheckAttributeDefault 71 SpellcheckAttributeDefault
71 }; 72 };
72 73
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // will be returned. This is not a trivial getter and its return value shoul d be cached 160 // will be returned. This is not a trivial getter and its return value shoul d be cached
160 // for performance. 161 // for performance.
161 AttributeCollection attributes() const; 162 AttributeCollection attributes() const;
162 // This variant will not update the potentially invalid attributes. To be us ed when not interested 163 // This variant will not update the potentially invalid attributes. To be us ed when not interested
163 // in style attribute or one of the SVG animation attributes. 164 // in style attribute or one of the SVG animation attributes.
164 AttributeCollection attributesWithoutUpdate() const; 165 AttributeCollection attributesWithoutUpdate() const;
165 166
166 void scrollIntoView(bool alignToTop = true); 167 void scrollIntoView(bool alignToTop = true);
167 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); 168 void scrollIntoViewIfNeeded(bool centerIfNeeded = true);
168 169
170 void callDistributeScroll(ScrollState*);
171 virtual void distributeScroll(ScrollState*);
172 void callApplyScroll(ScrollState*);
173 virtual void applyScroll(ScrollState*);
174
169 int offsetLeft(); 175 int offsetLeft();
170 int offsetTop(); 176 int offsetTop();
171 int offsetWidth(); 177 int offsetWidth();
172 int offsetHeight(); 178 int offsetHeight();
173 179
174 // FIXME: Replace uses of offsetParent in the platform with calls 180 // FIXME: Replace uses of offsetParent in the platform with calls
175 // to the render layer and merge offsetParentForBindings and offsetParent. 181 // to the render layer and merge offsetParentForBindings and offsetParent.
176 Element* offsetParentForBindings(); 182 Element* offsetParentForBindings();
177 183
178 Element* offsetParent(); 184 Element* offsetParent();
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 885 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 886 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 887 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
882 { \ 888 { \
883 return adoptRefWillBeNoop(new T(tagName, document)); \ 889 return adoptRefWillBeNoop(new T(tagName, document)); \
884 } 890 }
885 891
886 } // namespace 892 } // namespace
887 893
888 #endif // Element_h 894 #endif // Element_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698