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

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

Issue 1319863006: (blink) Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address nits Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/html/HTMLFrameElementBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 * 21 *
22 */ 22 */
23 23
24 #ifndef HTMLFrameElementBase_h 24 #ifndef HTMLFrameElementBase_h
25 #define HTMLFrameElementBase_h 25 #define HTMLFrameElementBase_h
26 26
27 #include "core/html/HTMLFrameOwnerElement.h" 27 #include "core/html/HTMLFrameOwnerElement.h"
28 #include "platform/scroll/ScrollTypes.h"
29 28
30 namespace blink { 29 namespace blink {
31 30
32 class HTMLFrameElementBase : public HTMLFrameOwnerElement { 31 class HTMLFrameElementBase : public HTMLFrameOwnerElement {
33 public: 32 public:
34 ScrollbarMode scrollingMode() const final { return m_scrolling; }
35
36 int marginWidth() const { return m_marginWidth; }
37 int marginHeight() const { return m_marginHeight; }
38
39 bool canContainRangeEndPoint() const final { return false; } 33 bool canContainRangeEndPoint() const final { return false; }
40 34
41 protected: 35 protected:
42 HTMLFrameElementBase(const QualifiedName&, Document&); 36 HTMLFrameElementBase(const QualifiedName&, Document&);
43 37
44 bool isURLAllowed() const; 38 bool isURLAllowed() const;
45 39
46 void parseAttribute(const QualifiedName&, const AtomicString&) override; 40 void parseAttribute(const QualifiedName&, const AtomicString&) override;
47 InsertionNotificationRequest insertedInto(ContainerNode*) override; 41 InsertionNotificationRequest insertedInto(ContainerNode*) override;
48 void didNotifySubtreeInsertionsToDocument() final; 42 void didNotifySubtreeInsertionsToDocument() final;
(...skipping 12 matching lines...) Expand all
61 bool isHTMLContentAttribute(const Attribute&) const final; 55 bool isHTMLContentAttribute(const Attribute&) const final;
62 56
63 bool areAuthorShadowsAllowed() const final { return false; } 57 bool areAuthorShadowsAllowed() const final { return false; }
64 58
65 void setLocation(const String&); 59 void setLocation(const String&);
66 void setNameAndOpenURL(); 60 void setNameAndOpenURL();
67 void openURL(bool replaceCurrentItem = true); 61 void openURL(bool replaceCurrentItem = true);
68 62
69 AtomicString m_URL; 63 AtomicString m_URL;
70 AtomicString m_frameName; 64 AtomicString m_frameName;
71
72 ScrollbarMode m_scrolling;
73
74 int m_marginWidth;
75 int m_marginHeight;
76 }; 65 };
77 66
78 inline bool isHTMLFrameElementBase(const HTMLElement& element) 67 inline bool isHTMLFrameElementBase(const HTMLElement& element)
79 { 68 {
80 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); 69 return isHTMLFrameElement(element) || isHTMLIFrameElement(element);
81 } 70 }
82 71
83 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); 72 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase);
84 73
85 } // namespace blink 74 } // namespace blink
86 75
87 #endif // HTMLFrameElementBase_h 76 #endif // HTMLFrameElementBase_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/html/HTMLFrameElementBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698