Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: Source/core/html/HTMLDialogElement.h

Issue 118333005: Refactor RenderTreeBuilder and expose special <dialog> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/RenderTreeBuilder.cpp ('k') | Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/RenderTreeBuilder.cpp ('k') | Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698