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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 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 20 matching lines...) Expand all
31 #include "core/css/CSSPrimitiveValue.h" 31 #include "core/css/CSSPrimitiveValue.h"
32 #include "core/css/CSSSelector.h" 32 #include "core/css/CSSSelector.h"
33 #include "core/dom/AXObjectCache.h" 33 #include "core/dom/AXObjectCache.h"
34 #include "core/dom/Attribute.h" 34 #include "core/dom/Attribute.h"
35 #include "core/dom/ContainerNode.h" 35 #include "core/dom/ContainerNode.h"
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/dom/ElementData.h" 37 #include "core/dom/ElementData.h"
38 #include "core/dom/SpaceSplitString.h" 38 #include "core/dom/SpaceSplitString.h"
39 #include "core/html/CollectionType.h" 39 #include "core/html/CollectionType.h"
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "platform/scroll/ScrollTypes.h"
41 #include "public/platform/WebFocusType.h" 42 #include "public/platform/WebFocusType.h"
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class ElementAnimations; 46 class ElementAnimations;
46 class Attr; 47 class Attr;
47 class Attribute; 48 class Attribute;
48 class CSSStyleDeclaration; 49 class CSSStyleDeclaration;
49 class ClientRect; 50 class ClientRect;
50 class ClientRectList; 51 class ClientRectList;
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 657
657 bool isSpellCheckingEnabled() const; 658 bool isSpellCheckingEnabled() const;
658 659
659 // FIXME: public for LayoutTreeBuilder, we shouldn't expose this though. 660 // FIXME: public for LayoutTreeBuilder, we shouldn't expose this though.
660 PassRefPtr<ComputedStyle> styleForLayoutObject(); 661 PassRefPtr<ComputedStyle> styleForLayoutObject();
661 662
662 bool hasID() const; 663 bool hasID() const;
663 bool hasClass() const; 664 bool hasClass() const;
664 const SpaceSplitString& classNames() const; 665 const SpaceSplitString& classNames() const;
665 666
666 IntSize savedLayerScrollOffset() const; 667 ScrollOffset savedLayerScrollOffset() const;
667 void setSavedLayerScrollOffset(const IntSize&); 668 void setSavedLayerScrollOffset(const ScrollOffset&);
668 669
669 ElementAnimations* elementAnimations() const; 670 ElementAnimations* elementAnimations() const;
670 ElementAnimations& ensureElementAnimations(); 671 ElementAnimations& ensureElementAnimations();
671 bool hasAnimations() const; 672 bool hasAnimations() const;
672 673
673 void synchronizeAttribute(const AtomicString& localName) const; 674 void synchronizeAttribute(const AtomicString& localName) const;
674 675
675 MutableStylePropertySet& ensureMutableInlineStyle(); 676 MutableStylePropertySet& ensureMutableInlineStyle();
676 void clearMutableInlineStyleIfEmpty(); 677 void clearMutableInlineStyleIfEmpty();
677 678
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1152 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1152 static T* create(const QualifiedName&, Document&) 1153 static T* create(const QualifiedName&, Document&)
1153 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1154 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1154 T* T::create(const QualifiedName& tagName, Document& document) { \ 1155 T* T::create(const QualifiedName& tagName, Document& document) { \
1155 return new T(tagName, document); \ 1156 return new T(tagName, document); \
1156 } 1157 }
1157 1158
1158 } // namespace blink 1159 } // namespace blink
1159 1160
1160 #endif // Element_h 1161 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/zoom-body-scroll-expected.txt ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698