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

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

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 68 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
69 else 69 else
70 HTMLElement::collectStyleForPresentationAttribute(name, value, style); 70 HTMLElement::collectStyleForPresentationAttribute(name, value, style);
71 } 71 }
72 72
73 void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic String& value) 73 void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic String& value)
74 { 74 {
75 if (name == rowsAttr) { 75 if (name == rowsAttr) {
76 if (!value.isNull()) { 76 if (!value.isNull()) {
77 m_rowLengths = parseListOfDimensions(value.string()); 77 m_rowLengths = parseListOfDimensions(value.string());
78 setNeedsStyleRecalc(SubtreeStyleChange); 78 setNeedsStyleRecalc(StyleRecalcDueToFrameSet, SubtreeStyleChange);
79 } 79 }
80 } else if (name == colsAttr) { 80 } else if (name == colsAttr) {
81 if (!value.isNull()) { 81 if (!value.isNull()) {
82 m_colLengths = parseListOfDimensions(value.string()); 82 m_colLengths = parseListOfDimensions(value.string());
83 setNeedsStyleRecalc(SubtreeStyleChange); 83 setNeedsStyleRecalc(StyleRecalcDueToFrameSet, SubtreeStyleChange);
84 } 84 }
85 } else if (name == frameborderAttr) { 85 } else if (name == frameborderAttr) {
86 if (!value.isNull()) { 86 if (!value.isNull()) {
87 if (equalIgnoringCase(value, "no") || equalIgnoringCase(value, "0")) { 87 if (equalIgnoringCase(value, "no") || equalIgnoringCase(value, "0")) {
88 m_frameborder = false; 88 m_frameborder = false;
89 m_frameborderSet = true; 89 m_frameborderSet = true;
90 } else if (equalIgnoringCase(value, "yes") || equalIgnoringCase(valu e, "1")) { 90 } else if (equalIgnoringCase(value, "yes") || equalIgnoringCase(valu e, "1")) {
91 m_frameborderSet = true; 91 m_frameborderSet = true;
92 } 92 }
93 } else { 93 } else {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 Element* frameElement = children()->namedItem(name); 216 Element* frameElement = children()->namedItem(name);
217 if (!isHTMLFrameElement(frameElement)) 217 if (!isHTMLFrameElement(frameElement))
218 return 0; 218 return 0;
219 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); 219 Document* document = toHTMLFrameElement(frameElement)->contentDocument();
220 if (!document || !document->frame()) 220 if (!document || !document->frame())
221 return 0; 221 return 0;
222 return document->domWindow(); 222 return document->domWindow();
223 } 223 }
224 224
225 } // namespace blink 225 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698