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

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

Issue 1188563005: Compute snap offsets (both repeat and element based) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove m_frame Created 5 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 void formatForDebugger(char* buffer, unsigned length) const override; 632 void formatForDebugger(char* buffer, unsigned length) const override;
633 #endif 633 #endif
634 634
635 bool pseudoStyleCacheIsInvalid(const ComputedStyle* currentStyle, ComputedSt yle* newStyle); 635 bool pseudoStyleCacheIsInvalid(const ComputedStyle* currentStyle, ComputedSt yle* newStyle);
636 636
637 void cancelFocusAppearanceUpdate(); 637 void cancelFocusAppearanceUpdate();
638 638
639 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif ier = NOPSEUDO) override { return ensureComputedStyle(pseudoElementSpecifier); } 639 const ComputedStyle* virtualEnsureComputedStyle(PseudoId pseudoElementSpecif ier = NOPSEUDO) override { return ensureComputedStyle(pseudoElementSpecifier); }
640 640
641 inline void updateCallbackSelectors(const ComputedStyle* oldStyle, const Com putedStyle* newStyle); 641 inline void updateCallbackSelectors(const ComputedStyle* oldStyle, const Com putedStyle* newStyle);
642 inline void removeCallbackSelectors(); 642 inline void removeCallbackSelectors(const ComputedStyle*);
643 inline void addCallbackSelectors(); 643 inline void addCallbackSelectors(const ComputedStyle*);
644
645 inline void updateScrollSnapMapping(const ComputedStyle* oldStyle, const Com putedStyle* newStyle);
646 inline void removeScrollSnapMapping(const ComputedStyle*);
647 inline void addScrollSnapMapping(const ComputedStyle*);
644 648
645 // cloneNode is private so that non-virtual cloneElementWithChildren and clo neElementWithoutChildren 649 // cloneNode is private so that non-virtual cloneElementWithChildren and clo neElementWithoutChildren
646 // are used instead. 650 // are used instead.
647 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override; 651 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override;
648 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil dren(); 652 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil dren();
649 653
650 QualifiedName m_tagName; 654 QualifiedName m_tagName;
651 655
652 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName); 656 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName);
653 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName); 657 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 907 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
904 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 908 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
905 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 909 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
906 { \ 910 { \
907 return adoptRefWillBeNoop(new T(tagName, document)); \ 911 return adoptRefWillBeNoop(new T(tagName, document)); \
908 } 912 }
909 913
910 } // namespace 914 } // namespace
911 915
912 #endif // Element_h 916 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698