| OLD | NEW |
| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 } | 273 } |
| 274 | 274 |
| 275 static inline bool canHaveWhitespaceChildren(const LayoutObject& parent) | 275 static inline bool canHaveWhitespaceChildren(const LayoutObject& parent) |
| 276 { | 276 { |
| 277 // <button> should allow whitespace even though RenderFlexibleBox doesn't. | 277 // <button> should allow whitespace even though RenderFlexibleBox doesn't. |
| 278 if (parent.isRenderButton()) | 278 if (parent.isRenderButton()) |
| 279 return true; | 279 return true; |
| 280 | 280 |
| 281 if (parent.isTable() || parent.isTableRow() || parent.isTableSection() | 281 if (parent.isTable() || parent.isTableRow() || parent.isTableSection() |
| 282 || parent.isLayoutTableCol() || parent.isFrameSet() | 282 || parent.isLayoutTableCol() || parent.isFrameSet() |
| 283 || parent.isFlexibleBox() || parent.isRenderGrid() | 283 || parent.isFlexibleBox() || parent.isLayoutGrid() |
| 284 || parent.isSVGRoot() | 284 || parent.isSVGRoot() |
| 285 || parent.isSVGContainer() | 285 || parent.isSVGContainer() |
| 286 || parent.isSVGImage() | 286 || parent.isSVGImage() |
| 287 || parent.isSVGShape()) | 287 || parent.isSVGShape()) |
| 288 return false; | 288 return false; |
| 289 return true; | 289 return true; |
| 290 } | 290 } |
| 291 | 291 |
| 292 bool Text::textRendererIsNeeded(const LayoutStyle& style, const LayoutObject& pa
rent) | 292 bool Text::textRendererIsNeeded(const LayoutStyle& style, const LayoutObject& pa
rent) |
| 293 { | 293 { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 result.appendLiteral("; "); | 465 result.appendLiteral("; "); |
| 466 result.appendLiteral("value="); | 466 result.appendLiteral("value="); |
| 467 result.append(s); | 467 result.append(s); |
| 468 } | 468 } |
| 469 | 469 |
| 470 strncpy(buffer, result.toString().utf8().data(), length - 1); | 470 strncpy(buffer, result.toString().utf8().data(), length - 1); |
| 471 } | 471 } |
| 472 #endif | 472 #endif |
| 473 | 473 |
| 474 } // namespace blink | 474 } // namespace blink |
| OLD | NEW |