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

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

Issue 152623002: Make StyleChange parameter explicit in setNeedsStyleRecalc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLInputElement.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 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009, 2010 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 72 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
73 else 73 else
74 HTMLElement::collectStyleForPresentationAttribute(name, value, style); 74 HTMLElement::collectStyleForPresentationAttribute(name, value, style);
75 } 75 }
76 76
77 void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic String& value) 77 void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic String& value)
78 { 78 {
79 if (name == rowsAttr) { 79 if (name == rowsAttr) {
80 if (!value.isNull()) { 80 if (!value.isNull()) {
81 m_rowLengths = parseListOfDimensions(value.string()); 81 m_rowLengths = parseListOfDimensions(value.string());
82 setNeedsStyleRecalc(); 82 setNeedsStyleRecalc(SubtreeStyleChange);
83 } 83 }
84 } else if (name == colsAttr) { 84 } else if (name == colsAttr) {
85 if (!value.isNull()) { 85 if (!value.isNull()) {
86 m_colLengths = parseListOfDimensions(value.string()); 86 m_colLengths = parseListOfDimensions(value.string());
87 setNeedsStyleRecalc(); 87 setNeedsStyleRecalc(SubtreeStyleChange);
88 } 88 }
89 } else if (name == frameborderAttr) { 89 } else if (name == frameborderAttr) {
90 if (!value.isNull()) { 90 if (!value.isNull()) {
91 if (equalIgnoringCase(value, "no") || equalIgnoringCase(value, "0")) { 91 if (equalIgnoringCase(value, "no") || equalIgnoringCase(value, "0")) {
92 m_frameborder = false; 92 m_frameborder = false;
93 m_frameborderSet = true; 93 m_frameborderSet = true;
94 } else if (equalIgnoringCase(value, "yes") || equalIgnoringCase(valu e, "1")) { 94 } else if (equalIgnoringCase(value, "yes") || equalIgnoringCase(valu e, "1")) {
95 m_frameborderSet = true; 95 m_frameborderSet = true;
96 } 96 }
97 } else { 97 } else {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Element* frameElement = children()->namedItem(name); 222 Element* frameElement = children()->namedItem(name);
223 if (!frameElement || !frameElement->hasTagName(HTMLNames::frameTag)) 223 if (!frameElement || !frameElement->hasTagName(HTMLNames::frameTag))
224 return 0; 224 return 0;
225 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); 225 Document* document = toHTMLFrameElement(frameElement)->contentDocument();
226 if (!document || !document->frame()) 226 if (!document || !document->frame())
227 return 0; 227 return 0;
228 return document->domWindow(); 228 return document->domWindow();
229 } 229 }
230 230
231 } // namespace WebCore 231 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698