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

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

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: Created 3 years, 8 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 void ClassAttributeChanged(const AtomicString& new_class_string); 840 void ClassAttributeChanged(const AtomicString& new_class_string);
841 841
842 static bool AttributeValueIsJavaScriptURL(const Attribute&); 842 static bool AttributeValueIsJavaScriptURL(const Attribute&);
843 843
844 PassRefPtr<ComputedStyle> OriginalStyleForLayoutObject(); 844 PassRefPtr<ComputedStyle> OriginalStyleForLayoutObject();
845 845
846 Node* InsertAdjacent(const String& where, Node* new_child, ExceptionState&); 846 Node* InsertAdjacent(const String& where, Node* new_child, ExceptionState&);
847 847
848 virtual void ParserDidSetAttributes() {} 848 virtual void ParserDidSetAttributes() {}
849 849
850 // Helper method which ensures that the lifecycle is valid to calculate
851 // location based APIs such as offsetTop.
852 void EnsureLifecycleValidForLocationAPIs();
853
850 private: 854 private:
851 void ScrollLayoutBoxBy(const ScrollToOptions&); 855 void ScrollLayoutBoxBy(const ScrollToOptions&);
852 void ScrollLayoutBoxTo(const ScrollToOptions&); 856 void ScrollLayoutBoxTo(const ScrollToOptions&);
853 void ScrollFrameBy(const ScrollToOptions&); 857 void ScrollFrameBy(const ScrollToOptions&);
854 void ScrollFrameTo(const ScrollToOptions&); 858 void ScrollFrameTo(const ScrollToOptions&);
855 859
856 bool HasElementFlag(ElementFlags mask) const { 860 bool HasElementFlag(ElementFlags mask) const {
857 return HasRareData() && HasElementFlagInternal(mask); 861 return HasRareData() && HasElementFlagInternal(mask);
858 } 862 }
859 void SetElementFlag(ElementFlags, bool value = true); 863 void SetElementFlag(ElementFlags, bool value = true);
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1237 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1234 static T* Create(const QualifiedName&, Document&) 1238 static T* Create(const QualifiedName&, Document&)
1235 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1239 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1236 T* T::Create(const QualifiedName& tagName, Document& document) { \ 1240 T* T::Create(const QualifiedName& tagName, Document& document) { \
1237 return new T(tagName, document); \ 1241 return new T(tagName, document); \
1238 } 1242 }
1239 1243
1240 } // namespace blink 1244 } // namespace blink
1241 1245
1242 #endif // Element_h 1246 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698