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

Side by Side Diff: third_party/WebKit/Source/core/page/PrintContext.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, 9 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) 2007 Alp Toker <alp@atoker.com> 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
3 * Copyright (C) 2007 Apple Inc. 3 * Copyright (C) 2007 Apple Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 if (!strcmp(propertyName, "margin-left")) { 270 if (!strcmp(propertyName, "margin-left")) {
271 if (style->marginLeft().isAuto()) 271 if (style->marginLeft().isAuto())
272 return String("auto"); 272 return String("auto");
273 return String::number(style->marginLeft().value()); 273 return String::number(style->marginLeft().value());
274 } 274 }
275 if (!strcmp(propertyName, "line-height")) 275 if (!strcmp(propertyName, "line-height"))
276 return String::number(style->lineHeight().value()); 276 return String::number(style->lineHeight().value());
277 if (!strcmp(propertyName, "font-size")) 277 if (!strcmp(propertyName, "font-size"))
278 return String::number(style->getFontDescription().computedPixelSize()); 278 return String::number(style->getFontDescription().computedPixelSize());
279 if (!strcmp(propertyName, "font-family")) 279 if (!strcmp(propertyName, "font-family"))
280 return style->getFontDescription().family().family().string(); 280 return style->getFontDescription().family().family().getString();
281 if (!strcmp(propertyName, "size")) 281 if (!strcmp(propertyName, "size"))
282 return String::number(style->pageSize().width()) + ' ' + String::number( style->pageSize().height()); 282 return String::number(style->pageSize().width()) + ' ' + String::number( style->pageSize().height());
283 283
284 return String("pageProperty() unimplemented for: ") + propertyName; 284 return String("pageProperty() unimplemented for: ") + propertyName;
285 } 285 }
286 286
287 bool PrintContext::isPageBoxVisible(LocalFrame* frame, int pageNumber) 287 bool PrintContext::isPageBoxVisible(LocalFrame* frame, int pageNumber)
288 { 288 {
289 return frame->document()->isPageBoxVisible(pageNumber); 289 return frame->document()->isPageBoxVisible(pageNumber);
290 } 290 }
(...skipping 23 matching lines...) Expand all
314 314
315 DEFINE_TRACE(PrintContext) 315 DEFINE_TRACE(PrintContext)
316 { 316 {
317 #if ENABLE(OILPAN) 317 #if ENABLE(OILPAN)
318 visitor->trace(m_frame); 318 visitor->trace(m_frame);
319 visitor->trace(m_linkedDestinations); 319 visitor->trace(m_linkedDestinations);
320 #endif 320 #endif
321 } 321 }
322 322
323 } // namespace blink 323 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | third_party/WebKit/Source/core/svg/SVGParsingError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698