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

Side by Side Diff: Source/core/html/HTMLFrameElement.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLFrameElement.h ('k') | Source/core/html/HTMLFrameSetElement.h » ('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 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009 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 24 matching lines...) Expand all
35 35
36 inline HTMLFrameElement::HTMLFrameElement(Document& document) 36 inline HTMLFrameElement::HTMLFrameElement(Document& document)
37 : HTMLFrameElementBase(frameTag, document) 37 : HTMLFrameElementBase(frameTag, document)
38 , m_frameBorder(true) 38 , m_frameBorder(true)
39 , m_frameBorderSet(false) 39 , m_frameBorderSet(false)
40 { 40 {
41 } 41 }
42 42
43 DEFINE_NODE_FACTORY(HTMLFrameElement) 43 DEFINE_NODE_FACTORY(HTMLFrameElement)
44 44
45 bool HTMLFrameElement::layoutObjectIsNeeded(const LayoutStyle&) 45 bool HTMLFrameElement::layoutObjectIsNeeded(const ComputedStyle&)
46 { 46 {
47 // For compatibility, frames render even when display: none is set. 47 // For compatibility, frames render even when display: none is set.
48 return isURLAllowed(); 48 return isURLAllowed();
49 } 49 }
50 50
51 LayoutObject* HTMLFrameElement::createLayoutObject(const LayoutStyle&) 51 LayoutObject* HTMLFrameElement::createLayoutObject(const ComputedStyle&)
52 { 52 {
53 return new LayoutFrame(this); 53 return new LayoutFrame(this);
54 } 54 }
55 55
56 bool HTMLFrameElement::noResize() const 56 bool HTMLFrameElement::noResize() const
57 { 57 {
58 return hasAttribute(noresizeAttr); 58 return hasAttribute(noresizeAttr);
59 } 59 }
60 60
61 void HTMLFrameElement::attach(const AttachContext& context) 61 void HTMLFrameElement::attach(const AttachContext& context)
(...skipping 13 matching lines...) Expand all
75 m_frameBorderSet = !value.isNull(); 75 m_frameBorderSet = !value.isNull();
76 // FIXME: If we are already attached, this has no effect. 76 // FIXME: If we are already attached, this has no effect.
77 } else if (name == noresizeAttr) { 77 } else if (name == noresizeAttr) {
78 if (layoutObject()) 78 if (layoutObject())
79 layoutObject()->updateFromElement(); 79 layoutObject()->updateFromElement();
80 } else 80 } else
81 HTMLFrameElementBase::parseAttribute(name, value); 81 HTMLFrameElementBase::parseAttribute(name, value);
82 } 82 }
83 83
84 } // namespace blink 84 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameElement.h ('k') | Source/core/html/HTMLFrameSetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698