| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void setNotCentered(); | 55 void setNotCentered(); |
| 56 | 56 |
| 57 String returnValue() const { return m_returnValue; } | 57 String returnValue() const { return m_returnValue; } |
| 58 void setReturnValue(const String& returnValue) { m_returnValue = returnValue
; } | 58 void setReturnValue(const String& returnValue) { m_returnValue = returnValue
; } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 explicit HTMLDialogElement(Document&); | 61 explicit HTMLDialogElement(Document&); |
| 62 | 62 |
| 63 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 63 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 64 virtual void defaultEventHandler(Event*) OVERRIDE; | 64 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 65 virtual bool shouldBeReparentedUnderRenderView(const RenderStyle*) const OVE
RRIDE; | |
| 66 | 65 |
| 67 void forceLayoutForCentering(); | 66 void forceLayoutForCentering(); |
| 68 | 67 |
| 69 CenteringMode m_centeringMode; | 68 CenteringMode m_centeringMode; |
| 70 LayoutUnit m_centeredPosition; | 69 LayoutUnit m_centeredPosition; |
| 71 String m_returnValue; | 70 String m_returnValue; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 inline bool isHTMLDialogElement(const Node& node) | 73 inline bool isHTMLDialogElement(const Node& node) |
| 75 { | 74 { |
| 76 ASSERT_WITH_SECURITY_IMPLICATION(RuntimeEnabledFeatures::dialogElementEnable
d()); | 75 ASSERT_WITH_SECURITY_IMPLICATION(RuntimeEnabledFeatures::dialogElementEnable
d()); |
| 77 return node.hasTagName(HTMLNames::dialogTag); | 76 return node.hasTagName(HTMLNames::dialogTag); |
| 78 } | 77 } |
| 79 | 78 |
| 80 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLDialogElement); | 79 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLDialogElement); |
| 81 | 80 |
| 82 } // namespace WebCore | 81 } // namespace WebCore |
| 83 | 82 |
| 84 #endif | 83 #endif |
| OLD | NEW |