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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.h

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+more tweaks Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool hasAutofocusRequest(Document*); 148 bool hasAutofocusRequest(Document*);
149 bool hasAutofocusRequest(); 149 bool hasAutofocusRequest();
150 Vector<String> formControlStateOfHistoryItem(ExceptionState&); 150 Vector<String> formControlStateOfHistoryItem(ExceptionState&);
151 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState& ); 151 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState& );
152 DOMWindow* pagePopupWindow() const; 152 DOMWindow* pagePopupWindow() const;
153 153
154 ClientRect* absoluteCaretBounds(ExceptionState&); 154 ClientRect* absoluteCaretBounds(ExceptionState&);
155 155
156 ClientRect* boundingBox(Element*); 156 ClientRect* boundingBox(Element*);
157 157
158 void fakeOutOfMemoryForNextArrayBufferAllocation() const;
159
158 unsigned markerCountForNode(Node*, const String&, ExceptionState&); 160 unsigned markerCountForNode(Node*, const String&, ExceptionState&);
159 unsigned activeMarkerCountForNode(Node*); 161 unsigned activeMarkerCountForNode(Node*);
160 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker Type, unsigned index, ExceptionState&); 162 PassRefPtrWillBeRawPtr<Range> markerRangeForNode(Node*, const String& marker Type, unsigned index, ExceptionState&);
161 String markerDescriptionForNode(Node*, const String& markerType, unsigned in dex, ExceptionState&); 163 String markerDescriptionForNode(Node*, const String& markerType, unsigned in dex, ExceptionState&);
162 void addTextMatchMarker(const Range*, bool isActive); 164 void addTextMatchMarker(const Range*, bool isActive);
163 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ; 165 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ;
164 void setMarkedTextMatchesAreHighlighted(Document*, bool); 166 void setMarkedTextMatchesAreHighlighted(Document*, bool);
165 167
166 void setFrameViewPosition(Document*, long x, long y, ExceptionState&); 168 void setFrameViewPosition(Document*, long x, long y, ExceptionState&);
167 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&); 169 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 409
408 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 410 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
409 Member<InternalRuntimeFlags> m_runtimeFlags; 411 Member<InternalRuntimeFlags> m_runtimeFlags;
410 412
411 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 413 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
412 }; 414 };
413 415
414 } // namespace blink 416 } // namespace blink
415 417
416 #endif // Internals_h 418 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698