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

Side by Side Diff: Source/core/html/shadow/TextFieldDecorationElement.h

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
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 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 TextFieldDecorator* textFieldDecorator() { return m_textFieldDecorator; } 72 TextFieldDecorator* textFieldDecorator() { return m_textFieldDecorator; }
73 void decorate(HTMLInputElement*, bool visible); 73 void decorate(HTMLInputElement*, bool visible);
74 74
75 virtual bool willRespondToMouseMoveEvents() OVERRIDE; 75 virtual bool willRespondToMouseMoveEvents() OVERRIDE;
76 virtual bool willRespondToMouseClickEvents() OVERRIDE; 76 virtual bool willRespondToMouseClickEvents() OVERRIDE;
77 77
78 private: 78 private:
79 TextFieldDecorationElement(Document*, TextFieldDecorator*); 79 TextFieldDecorationElement(Document*, TextFieldDecorator*);
80 virtual bool isTextFieldDecoration() const OVERRIDE; 80 virtual bool isTextFieldDecoration() const OVERRIDE;
81 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 81 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
82 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; 82 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
83 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 83 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
84 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; 84 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
85 virtual bool isMouseFocusable() const OVERRIDE; 85 virtual bool isMouseFocusable() const OVERRIDE;
86 virtual void defaultEventHandler(Event*) OVERRIDE; 86 virtual void defaultEventHandler(Event*) OVERRIDE;
87 87
88 HTMLInputElement* hostInput(); 88 HTMLInputElement* hostInput();
89 void updateImage(); 89 void updateImage();
90 90
91 TextFieldDecorator* m_textFieldDecorator; 91 TextFieldDecorator* m_textFieldDecorator;
92 bool m_isInHoverState; 92 bool m_isInHoverState;
93 }; 93 };
94 94
95 inline TextFieldDecorationElement* toTextFieldDecorationElement(Node* node) 95 inline TextFieldDecorationElement* toTextFieldDecorationElement(Node* node)
96 { 96 {
97 ASSERT(node); 97 ASSERT(node);
98 ASSERT_WITH_SECURITY_IMPLICATION(node->isElementNode()); 98 ASSERT_WITH_SECURITY_IMPLICATION(node->isElementNode());
99 ASSERT_WITH_SECURITY_IMPLICATION(toElement(node)->isTextFieldDecoration()); 99 ASSERT_WITH_SECURITY_IMPLICATION(toElement(node)->isTextFieldDecoration());
100 return static_cast<TextFieldDecorationElement*>(node); 100 return static_cast<TextFieldDecorationElement*>(node);
101 } 101 }
102 102
103 } 103 }
104 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698