| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 WebElement WebLabelElement::correspondingControl() | 41 WebElement WebLabelElement::correspondingControl() |
| 42 { | 42 { |
| 43 return WebElement(unwrap<HTMLLabelElement>()->control()); | 43 return WebElement(unwrap<HTMLLabelElement>()->control()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 WebLabelElement::WebLabelElement(const PassRefPtrWillBeRawPtr<HTMLLabelElement>&
elem) | 46 WebLabelElement::WebLabelElement(const PassRefPtrWillBeRawPtr<HTMLLabelElement>&
elem) |
| 47 : WebElement(elem) | 47 : WebElement(elem) |
| 48 { | 48 { |
| 49 } | 49 } |
| 50 | 50 |
| 51 DEFINE_WEB_NODE_TYPE_CASTS(WebLabelElement, isHTMLLabelElement(constUnwrap<Node>
())); |
| 52 |
| 51 WebLabelElement& WebLabelElement::operator=(const PassRefPtrWillBeRawPtr<HTMLLab
elElement>& elem) | 53 WebLabelElement& WebLabelElement::operator=(const PassRefPtrWillBeRawPtr<HTMLLab
elElement>& elem) |
| 52 { | 54 { |
| 53 m_private = elem; | 55 m_private = elem; |
| 54 return *this; | 56 return *this; |
| 55 } | 57 } |
| 56 | 58 |
| 57 WebLabelElement::operator PassRefPtrWillBeRawPtr<HTMLLabelElement>() const | 59 WebLabelElement::operator PassRefPtrWillBeRawPtr<HTMLLabelElement>() const |
| 58 { | 60 { |
| 59 return toHTMLLabelElement(m_private.get()); | 61 return toHTMLLabelElement(m_private.get()); |
| 60 } | 62 } |
| 61 | 63 |
| 62 } // namespace blink | 64 } // namespace blink |
| OLD | NEW |