OLD | NEW |
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 268 |
269 // Implement formatters for properties we care about. | 269 // Implement formatters for properties we care about. |
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->fontDescription().computedPixelSize()); | 278 return String::number(style->getFontDescription().computedPixelSize()); |
279 if (!strcmp(propertyName, "font-family")) | 279 if (!strcmp(propertyName, "font-family")) |
280 return style->fontDescription().family().family().string(); | 280 return style->getFontDescription().family().family().string(); |
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 Loading... |
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 |
OLD | NEW |