| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the render object implementation for KHTML. | 2 * This file is part of the render object implementation for KHTML. |
| 3 * | 3 * |
| 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 5 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 5 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 6 * Copyright (C) 2003 Apple Computer, Inc. | 6 * Copyright (C) 2003 Apple Computer, Inc. |
| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 UseCounter::count(document(), UseCounter::DeprecatedFlexboxWebConten
t); | 135 UseCounter::count(document(), UseCounter::DeprecatedFlexboxWebConten
t); |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 | 138 |
| 139 RenderDeprecatedFlexibleBox::~RenderDeprecatedFlexibleBox() | 139 RenderDeprecatedFlexibleBox::~RenderDeprecatedFlexibleBox() |
| 140 { | 140 { |
| 141 } | 141 } |
| 142 | 142 |
| 143 RenderDeprecatedFlexibleBox* RenderDeprecatedFlexibleBox::createAnonymous(Docume
nt* document) | 143 RenderDeprecatedFlexibleBox* RenderDeprecatedFlexibleBox::createAnonymous(Docume
nt* document) |
| 144 { | 144 { |
| 145 RenderDeprecatedFlexibleBox* renderer = new (document->renderArena()) Render
DeprecatedFlexibleBox(0); | 145 RenderDeprecatedFlexibleBox* renderer = new RenderDeprecatedFlexibleBox(0); |
| 146 renderer->setDocumentForAnonymous(document); | 146 renderer->setDocumentForAnonymous(document); |
| 147 return renderer; | 147 return renderer; |
| 148 } | 148 } |
| 149 | 149 |
| 150 static LayoutUnit marginWidthForChild(RenderBox* child) | 150 static LayoutUnit marginWidthForChild(RenderBox* child) |
| 151 { | 151 { |
| 152 // A margin basically has three types: fixed, percentage, and auto (variable
). | 152 // A margin basically has three types: fixed, percentage, and auto (variable
). |
| 153 // Auto and percentage margins simply become 0 when computing min/max width. | 153 // Auto and percentage margins simply become 0 when computing min/max width. |
| 154 // Fixed margins can be added in as is. | 154 // Fixed margins can be added in as is. |
| 155 Length marginLeft = child->style()->marginLeft(); | 155 Length marginLeft = child->style()->marginLeft(); |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 if (isPseudoElement()) | 1099 if (isPseudoElement()) |
| 1100 return "RenderDeprecatedFlexibleBox (generated)"; | 1100 return "RenderDeprecatedFlexibleBox (generated)"; |
| 1101 if (isAnonymous()) | 1101 if (isAnonymous()) |
| 1102 return "RenderDeprecatedFlexibleBox (generated)"; | 1102 return "RenderDeprecatedFlexibleBox (generated)"; |
| 1103 if (isRelPositioned()) | 1103 if (isRelPositioned()) |
| 1104 return "RenderDeprecatedFlexibleBox (relative positioned)"; | 1104 return "RenderDeprecatedFlexibleBox (relative positioned)"; |
| 1105 return "RenderDeprecatedFlexibleBox"; | 1105 return "RenderDeprecatedFlexibleBox"; |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 } // namespace WebCore | 1108 } // namespace WebCore |
| OLD | NEW |