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

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

Issue 2869803003: Change from ClientRect to DOMRect.
Patch Set: Change from ClientRect to DOMRect. 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 28 matching lines...) Expand all
39 #include "platform/scroll/ScrollTypes.h" 39 #include "platform/scroll/ScrollTypes.h"
40 #include "public/platform/WebFocusType.h" 40 #include "public/platform/WebFocusType.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class ElementAnimations; 44 class ElementAnimations;
45 class AccessibleNode; 45 class AccessibleNode;
46 class Attr; 46 class Attr;
47 class Attribute; 47 class Attribute;
48 class CSSStyleDeclaration; 48 class CSSStyleDeclaration;
49 class ClientRect;
50 class ClientRectList; 49 class ClientRectList;
51 class CompositorMutation; 50 class CompositorMutation;
52 class CustomElementDefinition; 51 class CustomElementDefinition;
52 class DOMRect;
53 class DOMStringMap; 53 class DOMStringMap;
54 class DOMTokenList; 54 class DOMTokenList;
55 class ElementRareData; 55 class ElementRareData;
56 class ElementShadow; 56 class ElementShadow;
57 class ExceptionState; 57 class ExceptionState;
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;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 void scrollTo(double x, double y); 256 void scrollTo(double x, double y);
257 virtual void scrollTo(const ScrollToOptions&); 257 virtual void scrollTo(const ScrollToOptions&);
258 258
259 IntRect BoundsInViewport() const; 259 IntRect BoundsInViewport() const;
260 // Returns an intersection rectangle of the bounds rectangle and the 260 // Returns an intersection rectangle of the bounds rectangle and the
261 // viewport rectangle, in the visual viewport coordinate. This function is 261 // viewport rectangle, in the visual viewport coordinate. This function is
262 // used to show popups beside this element. 262 // used to show popups beside this element.
263 IntRect VisibleBoundsInVisualViewport() const; 263 IntRect VisibleBoundsInVisualViewport() const;
264 264
265 ClientRectList* getClientRects(); 265 ClientRectList* getClientRects();
266 ClientRect* getBoundingClientRect(); 266 DOMRect* getBoundingClientRect();
267 267
268 bool HasNonEmptyLayoutSize() const; 268 bool HasNonEmptyLayoutSize() const;
269 269
270 const AtomicString& computedRole(); 270 const AtomicString& computedRole();
271 String computedName(); 271 String computedName();
272 272
273 AccessibleNode* ExistingAccessibleNode() const; 273 AccessibleNode* ExistingAccessibleNode() const;
274 AccessibleNode* accessibleNode(); 274 AccessibleNode* accessibleNode();
275 275
276 void DidMoveToNewDocument(Document&) override; 276 void DidMoveToNewDocument(Document&) override;
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1244 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1245 static T* Create(const QualifiedName&, Document&) 1245 static T* Create(const QualifiedName&, Document&)
1246 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1246 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1247 T* T::Create(const QualifiedName& tagName, Document& document) { \ 1247 T* T::Create(const QualifiedName& tagName, Document& document) { \
1248 return new T(tagName, document); \ 1248 return new T(tagName, document); \
1249 } 1249 }
1250 1250
1251 } // namespace blink 1251 } // namespace blink
1252 1252
1253 #endif // Element_h 1253 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698