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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameElementBase.h

Issue 2821303005: [selectors4] Use common ancestor strategy for :focus-within (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) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 InsertionNotificationRequest InsertedInto(ContainerNode*) override; 46 InsertionNotificationRequest InsertedInto(ContainerNode*) override;
47 void DidNotifySubtreeInsertionsToDocument() final; 47 void DidNotifySubtreeInsertionsToDocument() final;
48 void AttachLayoutTree(const AttachContext& = AttachContext()) override; 48 void AttachLayoutTree(const AttachContext& = AttachContext()) override;
49 49
50 void SetScrollingMode(ScrollbarMode); 50 void SetScrollingMode(ScrollbarMode);
51 void SetMarginWidth(int); 51 void SetMarginWidth(int);
52 void SetMarginHeight(int); 52 void SetMarginHeight(int);
53 53
54 private: 54 private:
55 bool SupportsFocus() const final; 55 bool SupportsFocus() const final;
56 void SetFocused(bool, WebFocusType) final; 56 void SetFocused(bool, WebFocusType, Node* common_ancestor = nullptr) final;
57 57
58 bool IsURLAttribute(const Attribute&) const final; 58 bool IsURLAttribute(const Attribute&) const final;
59 bool HasLegalLinkAttribute(const QualifiedName&) const final; 59 bool HasLegalLinkAttribute(const QualifiedName&) const final;
60 bool IsHTMLContentAttribute(const Attribute&) const final; 60 bool IsHTMLContentAttribute(const Attribute&) const final;
61 61
62 bool AreAuthorShadowsAllowed() const final { return false; } 62 bool AreAuthorShadowsAllowed() const final { return false; }
63 63
64 void SetLocation(const String&); 64 void SetLocation(const String&);
65 void SetNameAndOpenURL(); 65 void SetNameAndOpenURL();
66 bool IsURLAllowed() const; 66 bool IsURLAllowed() const;
67 void OpenURL(bool replace_current_item = true); 67 void OpenURL(bool replace_current_item = true);
68 68
69 ScrollbarMode scrolling_mode_; 69 ScrollbarMode scrolling_mode_;
70 int margin_width_; 70 int margin_width_;
71 int margin_height_; 71 int margin_height_;
72 72
73 AtomicString url_; 73 AtomicString url_;
74 AtomicString frame_name_; 74 AtomicString frame_name_;
75 }; 75 };
76 76
77 inline bool IsHTMLFrameElementBase(const HTMLElement& element) { 77 inline bool IsHTMLFrameElementBase(const HTMLElement& element) {
78 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); 78 return isHTMLFrameElement(element) || isHTMLIFrameElement(element);
79 } 79 }
80 80
81 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); 81 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase);
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // HTMLFrameElementBase_h 85 #endif // HTMLFrameElementBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698