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

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

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 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 * (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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 if (name == bordercolorAttr) 66 if (name == bordercolorAttr)
67 addHTMLColorToStyle(style, CSSPropertyBorderColor, value); 67 addHTMLColorToStyle(style, CSSPropertyBorderColor, value);
68 else 68 else
69 HTMLElement::collectStyleForPresentationAttribute(name, value, style); 69 HTMLElement::collectStyleForPresentationAttribute(name, value, style);
70 } 70 }
71 71
72 void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic String& oldValue, const AtomicString& value) 72 void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic String& oldValue, const AtomicString& value)
73 { 73 {
74 if (name == rowsAttr) { 74 if (name == rowsAttr) {
75 if (!value.isNull()) { 75 if (!value.isNull()) {
76 m_rowLengths = parseListOfDimensions(value.string()); 76 m_rowLengths = parseListOfDimensions(value.getString());
77 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing: :fromAttribute(name)); 77 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing: :fromAttribute(name));
78 } 78 }
79 } else if (name == colsAttr) { 79 } else if (name == colsAttr) {
80 if (!value.isNull()) { 80 if (!value.isNull()) {
81 m_colLengths = parseListOfDimensions(value.string()); 81 m_colLengths = parseListOfDimensions(value.getString());
82 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing: :fromAttribute(name)); 82 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing: :fromAttribute(name));
83 } 83 }
84 } else if (name == frameborderAttr) { 84 } else if (name == frameborderAttr) {
85 if (!value.isNull()) { 85 if (!value.isNull()) {
86 if (equalIgnoringCase(value, "no") || equalIgnoringCase(value, "0")) { 86 if (equalIgnoringCase(value, "no") || equalIgnoringCase(value, "0")) {
87 m_frameborder = false; 87 m_frameborder = false;
88 m_frameborderSet = true; 88 m_frameborderSet = true;
89 } else if (equalIgnoringCase(value, "yes") || equalIgnoringCase(valu e, "1")) { 89 } else if (equalIgnoringCase(value, "yes") || equalIgnoringCase(valu e, "1")) {
90 m_frameborderSet = true; 90 m_frameborderSet = true;
91 } 91 }
(...skipping 124 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 nullptr; 218 return nullptr;
219 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); 219 Document* document = toHTMLFrameElement(frameElement)->contentDocument();
220 if (!document || !document->frame()) 220 if (!document || !document->frame())
221 return nullptr; 221 return nullptr;
222 return document->domWindow(); 222 return document->domWindow();
223 } 223 }
224 224
225 } // namespace blink 225 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698