| 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 | 1020 |
| 1021 return 0; | 1021 return 0; |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 const char* RenderDeprecatedFlexibleBox::renderName() const | 1024 const char* RenderDeprecatedFlexibleBox::renderName() const |
| 1025 { | 1025 { |
| 1026 if (isFloating()) | 1026 if (isFloating()) |
| 1027 return "RenderDeprecatedFlexibleBox (floating)"; | 1027 return "RenderDeprecatedFlexibleBox (floating)"; |
| 1028 if (isOutOfFlowPositioned()) | 1028 if (isOutOfFlowPositioned()) |
| 1029 return "RenderDeprecatedFlexibleBox (positioned)"; | 1029 return "RenderDeprecatedFlexibleBox (positioned)"; |
| 1030 // FIXME: Cleanup isPseudoElement duplication with other renderName methods. | |
| 1031 // crbug.com/415653 | |
| 1032 if (style() && isPseudoElement()) { | |
| 1033 if (style()->styleType() == BEFORE) | |
| 1034 return "RenderDeprecatedFlexibleBox (pseudo:before)"; | |
| 1035 if (style()->styleType() == AFTER) | |
| 1036 return "RenderDeprecatedFlexibleBox (pseudo:after)"; | |
| 1037 if (style()->styleType() == BACKDROP) | |
| 1038 return "RenderDeprecatedFlexibleBox (pseudo:backdrop)"; | |
| 1039 ASSERT_NOT_REACHED(); | |
| 1040 } | |
| 1041 if (isAnonymous()) | 1030 if (isAnonymous()) |
| 1042 return "RenderDeprecatedFlexibleBox (generated)"; | 1031 return "RenderDeprecatedFlexibleBox (generated)"; |
| 1043 if (isRelPositioned()) | 1032 if (isRelPositioned()) |
| 1044 return "RenderDeprecatedFlexibleBox (relative positioned)"; | 1033 return "RenderDeprecatedFlexibleBox (relative positioned)"; |
| 1045 return "RenderDeprecatedFlexibleBox"; | 1034 return "RenderDeprecatedFlexibleBox"; |
| 1046 } | 1035 } |
| 1047 | 1036 |
| 1048 } // namespace blink | 1037 } // namespace blink |
| OLD | NEW |