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

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

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/dom/Document.cpp ('k') | 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int offsetLeft(); 113 int offsetLeft();
114 int offsetTop(); 114 int offsetTop();
115 int offsetWidth(); 115 int offsetWidth();
116 int offsetHeight(); 116 int offsetHeight();
117 117
118 Element* offsetParent(); 118 Element* offsetParent();
119 int clientLeft(); 119 int clientLeft();
120 int clientTop(); 120 int clientTop();
121 int clientWidth(); 121 int clientWidth();
122 int clientHeight(); 122 int clientHeight();
123 int scrollLeft();
124 int scrollTop();
125 void setScrollLeft(int);
126 void setScrollLeft(const Dictionary& scrollOptionsHorizontal, ExceptionState &);
127 void setScrollTop(int);
128 void setScrollTop(const Dictionary& scrollOptionsVertical, ExceptionState&);
129 int scrollWidth();
130 int scrollHeight();
131 123
132 PassRefPtr<ClientRectList> getClientRects(); 124 PassRefPtr<ClientRectList> getClientRects();
133 PassRefPtr<ClientRect> getBoundingClientRect(); 125 PassRefPtr<ClientRect> getBoundingClientRect();
134 126
135 virtual void didMoveToNewDocument(Document&) override; 127 virtual void didMoveToNewDocument(Document&) override;
136 128
137 CSSStyleDeclaration* style(); 129 CSSStyleDeclaration* style();
138 130
139 const QualifiedName& tagQName() const { return m_tagName; } 131 const QualifiedName& tagQName() const { return m_tagName; }
140 String tagName() const { return nodeName(); } 132 String tagName() const { return nodeName(); }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 243
252 bool isSpellCheckingEnabled() const; 244 bool isSpellCheckingEnabled() const;
253 245
254 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. 246 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though.
255 PassRefPtr<RenderStyle> styleForRenderer(); 247 PassRefPtr<RenderStyle> styleForRenderer();
256 248
257 bool hasID() const; 249 bool hasID() const;
258 bool hasClass() const; 250 bool hasClass() const;
259 const SpaceSplitString& classNames() const; 251 const SpaceSplitString& classNames() const;
260 252
261 IntSize savedLayerScrollOffset() const;
262 void setSavedLayerScrollOffset(const IntSize&);
263
264 ActiveAnimations* activeAnimations() const; 253 ActiveAnimations* activeAnimations() const;
265 ActiveAnimations& ensureActiveAnimations(); 254 ActiveAnimations& ensureActiveAnimations();
266 bool hasActiveAnimations() const; 255 bool hasActiveAnimations() const;
267 256
268 void synchronizeAttribute(const AtomicString& localName) const; 257 void synchronizeAttribute(const AtomicString& localName) const;
269 258
270 MutableStylePropertySet& ensureMutableInlineStyle(); 259 MutableStylePropertySet& ensureMutableInlineStyle();
271 void clearMutableInlineStyleIfEmpty(); 260 void clearMutableInlineStyleIfEmpty();
272 261
273 void setTabIndex(int); 262 void setTabIndex(int);
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 static PassRefPtr<T> create(const QualifiedName&, Document&) 561 static PassRefPtr<T> create(const QualifiedName&, Document&)
573 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 562 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
574 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 563 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
575 { \ 564 { \
576 return adoptRef(new T(tagName, document)); \ 565 return adoptRef(new T(tagName, document)); \
577 } 566 }
578 567
579 } // namespace 568 } // namespace
580 569
581 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 570 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698