| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #include "platform/wtf/HexNumber.h" | 60 #include "platform/wtf/HexNumber.h" |
| 61 #include "platform/wtf/Vector.h" | 61 #include "platform/wtf/Vector.h" |
| 62 #include "platform/wtf/text/CharacterNames.h" | 62 #include "platform/wtf/text/CharacterNames.h" |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 using namespace HTMLNames; | 66 using namespace HTMLNames; |
| 67 | 67 |
| 68 static void PrintBorderStyle(TextStream& ts, const EBorderStyle border_style) { | 68 static void PrintBorderStyle(TextStream& ts, const EBorderStyle border_style) { |
| 69 switch (border_style) { | 69 switch (border_style) { |
| 70 case kBorderStyleNone: | 70 case EBorderStyle::kNone: |
| 71 ts << "none"; | 71 ts << "none"; |
| 72 break; | 72 break; |
| 73 case kBorderStyleHidden: | 73 case EBorderStyle::kHidden: |
| 74 ts << "hidden"; | 74 ts << "hidden"; |
| 75 break; | 75 break; |
| 76 case kBorderStyleInset: | 76 case EBorderStyle::kInset: |
| 77 ts << "inset"; | 77 ts << "inset"; |
| 78 break; | 78 break; |
| 79 case kBorderStyleGroove: | 79 case EBorderStyle::kGroove: |
| 80 ts << "groove"; | 80 ts << "groove"; |
| 81 break; | 81 break; |
| 82 case kBorderStyleRidge: | 82 case EBorderStyle::kRidge: |
| 83 ts << "ridge"; | 83 ts << "ridge"; |
| 84 break; | 84 break; |
| 85 case kBorderStyleOutset: | 85 case EBorderStyle::kOutset: |
| 86 ts << "outset"; | 86 ts << "outset"; |
| 87 break; | 87 break; |
| 88 case kBorderStyleDotted: | 88 case EBorderStyle::kDotted: |
| 89 ts << "dotted"; | 89 ts << "dotted"; |
| 90 break; | 90 break; |
| 91 case kBorderStyleDashed: | 91 case EBorderStyle::kDashed: |
| 92 ts << "dashed"; | 92 ts << "dashed"; |
| 93 break; | 93 break; |
| 94 case kBorderStyleSolid: | 94 case EBorderStyle::kSolid: |
| 95 ts << "solid"; | 95 ts << "solid"; |
| 96 break; | 96 break; |
| 97 case kBorderStyleDouble: | 97 case EBorderStyle::kDouble: |
| 98 ts << "double"; | 98 ts << "double"; |
| 99 break; | 99 break; |
| 100 } | 100 } |
| 101 | 101 |
| 102 ts << " "; | 102 ts << " "; |
| 103 } | 103 } |
| 104 | 104 |
| 105 static String GetTagName(Node* n) { | 105 static String GetTagName(Node* n) { |
| 106 if (n->IsDocumentNode()) | 106 if (n->IsDocumentNode()) |
| 107 return ""; | 107 return ""; |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 element->GetDocument().UpdateStyleAndLayout(); | 878 element->GetDocument().UpdateStyleAndLayout(); |
| 879 | 879 |
| 880 LayoutObject* layout_object = element->GetLayoutObject(); | 880 LayoutObject* layout_object = element->GetLayoutObject(); |
| 881 if (!layout_object || !layout_object->IsListItem()) | 881 if (!layout_object || !layout_object->IsListItem()) |
| 882 return String(); | 882 return String(); |
| 883 | 883 |
| 884 return ToLayoutListItem(layout_object)->MarkerText(); | 884 return ToLayoutListItem(layout_object)->MarkerText(); |
| 885 } | 885 } |
| 886 | 886 |
| 887 } // namespace blink | 887 } // namespace blink |
| OLD | NEW |