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

Side by Side Diff: Source/core/html/BaseButtonInputType.cpp

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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 { 44 {
45 return false; 45 return false;
46 } 46 }
47 47
48 bool BaseButtonInputType::appendFormData(FormDataList&, bool) const 48 bool BaseButtonInputType::appendFormData(FormDataList&, bool) const
49 { 49 {
50 // Buttons except overridden types are never successful. 50 // Buttons except overridden types are never successful.
51 return false; 51 return false;
52 } 52 }
53 53
54 RenderObject* BaseButtonInputType::createRenderer(RenderArena* arena, RenderStyl e*) const 54 RenderObject* BaseButtonInputType::createRenderer(RenderStyle*) const
55 { 55 {
56 return new (arena) RenderButton(element()); 56 return new RenderButton(element());
57 } 57 }
58 58
59 bool BaseButtonInputType::storesValueSeparateFromAttribute() 59 bool BaseButtonInputType::storesValueSeparateFromAttribute()
60 { 60 {
61 return false; 61 return false;
62 } 62 }
63 63
64 void BaseButtonInputType::setValue(const String& sanitizedValue, bool, TextField EventBehavior) 64 void BaseButtonInputType::setValue(const String& sanitizedValue, bool, TextField EventBehavior)
65 { 65 {
66 element()->setAttribute(valueAttr, sanitizedValue); 66 element()->setAttribute(valueAttr, sanitizedValue);
67 } 67 }
68 68
69 } // namespace WebCore 69 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698