| 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 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. |
| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 StyleChangeReasonForTracing::FromAttribute(name)); | 81 StyleChangeReasonForTracing::FromAttribute(name)); |
| 82 } | 82 } |
| 83 } else if (name == colsAttr) { | 83 } else if (name == colsAttr) { |
| 84 if (!value.IsNull()) { | 84 if (!value.IsNull()) { |
| 85 col_lengths_ = ParseListOfDimensions(value.GetString()); | 85 col_lengths_ = ParseListOfDimensions(value.GetString()); |
| 86 SetNeedsStyleRecalc(kSubtreeStyleChange, | 86 SetNeedsStyleRecalc(kSubtreeStyleChange, |
| 87 StyleChangeReasonForTracing::FromAttribute(name)); | 87 StyleChangeReasonForTracing::FromAttribute(name)); |
| 88 } | 88 } |
| 89 } else if (name == frameborderAttr) { | 89 } else if (name == frameborderAttr) { |
| 90 if (!value.IsNull()) { | 90 if (!value.IsNull()) { |
| 91 if (EqualIgnoringCase(value, "no") || EqualIgnoringCase(value, "0")) { | 91 if (DeprecatedEqualIgnoringCase(value, "no") || |
| 92 DeprecatedEqualIgnoringCase(value, "0")) { |
| 92 frameborder_ = false; | 93 frameborder_ = false; |
| 93 frameborder_set_ = true; | 94 frameborder_set_ = true; |
| 94 } else if (EqualIgnoringCase(value, "yes") || | 95 } else if (DeprecatedEqualIgnoringCase(value, "yes") || |
| 95 EqualIgnoringCase(value, "1")) { | 96 DeprecatedEqualIgnoringCase(value, "1")) { |
| 96 frameborder_set_ = true; | 97 frameborder_set_ = true; |
| 97 } | 98 } |
| 98 } else { | 99 } else { |
| 99 frameborder_ = false; | 100 frameborder_ = false; |
| 100 frameborder_set_ = false; | 101 frameborder_set_ = false; |
| 101 } | 102 } |
| 102 } else if (name == noresizeAttr) { | 103 } else if (name == noresizeAttr) { |
| 103 noresize_ = true; | 104 noresize_ = true; |
| 104 } else if (name == borderAttr) { | 105 } else if (name == borderAttr) { |
| 105 if (!value.IsNull()) { | 106 if (!value.IsNull()) { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 Element* frame_element = Children()->namedItem(name); | 284 Element* frame_element = Children()->namedItem(name); |
| 284 if (!isHTMLFrameElement(frame_element)) | 285 if (!isHTMLFrameElement(frame_element)) |
| 285 return nullptr; | 286 return nullptr; |
| 286 Document* document = toHTMLFrameElement(frame_element)->contentDocument(); | 287 Document* document = toHTMLFrameElement(frame_element)->contentDocument(); |
| 287 if (!document || !document->GetFrame()) | 288 if (!document || !document->GetFrame()) |
| 288 return nullptr; | 289 return nullptr; |
| 289 return document->domWindow(); | 290 return document->domWindow(); |
| 290 } | 291 } |
| 291 | 292 |
| 292 } // namespace blink | 293 } // namespace blink |
| OLD | NEW |