mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
0cf4874c58
- Bug 1206072 - Don't call GetNextRenderTarget if CreateRenderTargetSet failed,r=vlad (323c478a5d) - Bug 1210444 - Set DEALLOCATE_CLIENT flag for EGLImage SharedSurfaceTextureClients. r=nical (194d629af0) - Bug 1218395 - Avoid calling AddFlags from SharedSurfaceTextureClient constructor. r=milan (335cdc86d3) - Bug 1226000 - control may pick up its name from wrong label, r=yzen (2686bf0a50) - bug 1213402 - add another , to fix silly string concatonation r=me landed on a CLOSED TREE (0900ea3a94) - Bug 1189108 - Walk up tree to get LinkableAccessible actions instead of caching r=tbsaunde (3ee63b4b0b) - Bug 1174383 - Fix bogus gfx/2d debug assertions that have side effects. r=Bas (0e47cdfd76) - Bug 1222569 - remove unused const variables from ExtendInputEffectD2D1.cpp; r=Bas (790f7ac4ed) - Bug 1191527 - Fix the YCbCr shaders in BlitImageToFramebuffer. r=jgilbert (68c5fcd454) - Bug 1207153 - Restore texture binding to correct target in GLBlitHelper. r=snorp (5f199889e2) - Bug 1178601 - Don't crash on incomplete FB. - r=jrmuizel (5bb9860bd3) - Bug 1164088 - Avoid IsFramebuffer assertion on Android emulator; r=jgilbert (2eaed192af) - Bug 1213431. Support using Core profile for WebGL2 on Linux. r=jgilbert (8cfa018ec7) - Bug 1209612 - Formalize client vs display EGL exts, and don't check client exts on ANDROID due to topcrash. - r=jrmuizel,snorp (0e98415c39) - Bug 1186431. Backout "Recreate the RenderTargetView on demand" r=jgilbert (90ff243064) - Bug 1213339 - Fix logic in WantsSmallTiles. r=nical (7c0e4c4d7d) - Bug 1212664 - Perform y-inversion correctly when dumping compositor surface. r=jrmuizel (01963dd49d) - Bug 1223540 - Add a pref for CGL's multithreaded mode (EMPEngine). r=jrmuizel (53b6cf04bd) - Bug 1133527. Fallback to software vsync on android. r=kats (40207086ae) - Bug 1200098 - patch 3 - Pass the gr_nobidi flag when shaping with graphite2, as we split text into unidirectional runs ahead of time. r=jdaggett (4de177c3fe) - Bug 1226801 - None of the GCHashMap users require movable keys; r=fitzgen (0f4c2e7cd7) - Bug 1226687 - Part 1: Export a GCPolicy usable by JS::Heap; r=fitzgen (cf5466239a) - Bug 1226687 - Part 2: Use stable hashing and builtin sweep for JSObject2JSObjectMap; r=mccr8 (4c68f76048) - Bug 1224418 - Functions directly scoped under non-syntactic scopes should be considered cloneable. (r=billm) (9efd091f1d) - No Bug - Remove two unused, orphan variables; r=sfink (1e2191c4c2) - Bug 1223990 - Cleanly throw errors in self-hosted code. (r=till) (6f25a3bd3e) - Bug 1132183 - Make |this| a real binding, remove lazy this computation. r=efaust,shu (c1e39487a2) - Bug 1221844 - Part 1: TraceLogger: Move TraceLogger_Invalidation to LOG_ITEM. r=h4writer (c2bbb7edd8) - Bug 1221844 - Part 2: TraceLogger: Add some debug checks to logTimestamp. r=h4writer (9ee099bd8b) - Bug 1223636: Tracelogger - Don't treat extraTextId as containing only extra ids, r=bbouvier (bad93df318) - Bug 1224123 - "Tracelogger: fix the use of LastEntryId in tracelogger.h". r=hv1989 (2cf9a30cf1) - Bug 1205893 - Eliminate vanilla memory allocations in Debugger-vixl. r=sstangl (56a3e3d37b) - Bug 1205893 - Remove vanilla allocations in ARM64 simulator. r=sstangl Use js_malloc/js_free and js_new/js_delete where appropriate. (5da0ec44b3) - Bug 1208674 - part 1: Add ToggleCall assertions. r=sstangl Assert that the ToggleCall() function does not overwrite any unexpected instructions. (cfb5c4be1a) - Bug 1208674 - Fix ToggleCall to handle constant pools. r=sstangl Handle constant pools inserted anywhere, even at the initial pointer location. Don't attempt handling constant pools with natural guard branches. They are not relevant here (and actually never generated currently). (cd025860b4) - Bug 1208259 - Handle OOM in the ARM64 VIXL Simulator. r=sstangl Make the Simulator creation robust against OOM stress tests. Now passes jsapitests testNewRuntime. (92a26871eb) - Bug 1219050 - Update VIXL helper code to v1.10. r=jolesen (7e57b34e76) - Bug 1227263 part 1 - Rename frame thisValue methods to thisArgument. r=shu (5818076931) - Bug 1227263 part 2 - Remove this-slot from generators. r=efaust (c89453a7ce) - Bug 1227263 part 3 - Remove this-slot from non-function frames. r=efaust (c2dd744cca) - Bug 1207571 r=jandem a=abillings (461bb9213f) - Bug 1108290 - introduce machine-independent definitions of sub32. r=nbp (2906131e4d) - Bug 1226799 - De-duplicate the 11 Is[BuiltinName] self-hosting intrinsics with templates. r=arai (50bcb68306) - No Bug - Fix accumulated unified build bustage in the JS shell; r=sfink (dbf8db9215) - Bug 1227535 - Add ZoneAllocPolicy and use it to attribute module memory usage to the zone r=terrence (63127682a9) - Bug 1227555 - Force specialization of JSObject::is() for ProxyObject subclasses r=shu (95b6dc79f8) - Bug 1201620 - Follow up: add a missing null check in js::SavedFrame::isSavedFrameOrWrapperAndNotProto; r=terrence (f2b6cc4751) - Bug 1226936 - Remove PreserveRegExpStatics and telemetry for it. r=till (6ca85fb1ea) - Bug 1221747 - Fix OOM handling in IonScriptCounts r=nbp (aea5012869) - Bug 1094057 - Violations of "use strict"; should generate errors, not warnings, r=jorendorff (627a9def4c)
324 lines
7.7 KiB
C++
324 lines
7.7 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_a11y_AccIterator_h__
|
|
#define mozilla_a11y_AccIterator_h__
|
|
|
|
#include "DocAccessible.h"
|
|
#include "Filters.h"
|
|
|
|
class nsITreeView;
|
|
|
|
namespace mozilla {
|
|
namespace a11y {
|
|
|
|
/**
|
|
* AccIterable is a basic interface for iterators over accessibles.
|
|
*/
|
|
class AccIterable
|
|
{
|
|
public:
|
|
virtual ~AccIterable() { }
|
|
virtual Accessible* Next() = 0;
|
|
|
|
private:
|
|
friend class Relation;
|
|
nsAutoPtr<AccIterable> mNextIter;
|
|
};
|
|
|
|
/**
|
|
* Allows to iterate through accessible children or subtree complying with
|
|
* filter function.
|
|
*/
|
|
class AccIterator : public AccIterable
|
|
{
|
|
public:
|
|
AccIterator(Accessible* aRoot, filters::FilterFuncPtr aFilterFunc);
|
|
virtual ~AccIterator();
|
|
|
|
/**
|
|
* Return next accessible complying with filter function. Return the first
|
|
* accessible for the first time.
|
|
*/
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
AccIterator();
|
|
AccIterator(const AccIterator&);
|
|
AccIterator& operator =(const AccIterator&);
|
|
|
|
struct IteratorState
|
|
{
|
|
explicit IteratorState(Accessible* aParent, IteratorState* mParentState = nullptr);
|
|
|
|
Accessible* mParent;
|
|
int32_t mIndex;
|
|
IteratorState* mParentState;
|
|
};
|
|
|
|
filters::FilterFuncPtr mFilterFunc;
|
|
IteratorState* mState;
|
|
};
|
|
|
|
|
|
/**
|
|
* Allows to traverse through related accessibles that are pointing to the given
|
|
* dependent accessible by relation attribute.
|
|
*/
|
|
class RelatedAccIterator : public AccIterable
|
|
{
|
|
public:
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param aDocument [in] the document accessible the related
|
|
* & accessibles belong to.
|
|
* @param aDependentContent [in] the content of dependent accessible that
|
|
* relations were requested for
|
|
* @param aRelAttr [in] relation attribute that relations are
|
|
* pointed by
|
|
*/
|
|
RelatedAccIterator(DocAccessible* aDocument, nsIContent* aDependentContent,
|
|
nsIAtom* aRelAttr);
|
|
|
|
virtual ~RelatedAccIterator() { }
|
|
|
|
/**
|
|
* Return next related accessible for the given dependent accessible.
|
|
*/
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
RelatedAccIterator();
|
|
RelatedAccIterator(const RelatedAccIterator&);
|
|
RelatedAccIterator& operator = (const RelatedAccIterator&);
|
|
|
|
DocAccessible* mDocument;
|
|
nsIAtom* mRelAttr;
|
|
DocAccessible::AttrRelProviderArray* mProviders;
|
|
nsIContent* mBindingParent;
|
|
uint32_t mIndex;
|
|
};
|
|
|
|
|
|
/**
|
|
* Used to iterate through HTML labels associated with the given accessible.
|
|
*/
|
|
class HTMLLabelIterator : public AccIterable
|
|
{
|
|
public:
|
|
enum LabelFilter {
|
|
eAllLabels,
|
|
eSkipAncestorLabel
|
|
};
|
|
|
|
HTMLLabelIterator(DocAccessible* aDocument, const Accessible* aAccessible,
|
|
LabelFilter aFilter = eAllLabels);
|
|
|
|
virtual ~HTMLLabelIterator() { }
|
|
|
|
/**
|
|
* Return next label accessible associated with the given element.
|
|
*/
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
HTMLLabelIterator();
|
|
HTMLLabelIterator(const HTMLLabelIterator&);
|
|
HTMLLabelIterator& operator = (const HTMLLabelIterator&);
|
|
|
|
bool IsLabel(Accessible* aLabel);
|
|
|
|
RelatedAccIterator mRelIter;
|
|
// XXX: replace it on weak reference (bug 678429), it's safe to use raw
|
|
// pointer now because iterators life cycle is short.
|
|
const Accessible* mAcc;
|
|
LabelFilter mLabelFilter;
|
|
};
|
|
|
|
|
|
/**
|
|
* Used to iterate through HTML outputs associated with the given element.
|
|
*/
|
|
class HTMLOutputIterator : public AccIterable
|
|
{
|
|
public:
|
|
HTMLOutputIterator(DocAccessible* aDocument, nsIContent* aElement);
|
|
virtual ~HTMLOutputIterator() { }
|
|
|
|
/**
|
|
* Return next output accessible associated with the given element.
|
|
*/
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
HTMLOutputIterator();
|
|
HTMLOutputIterator(const HTMLOutputIterator&);
|
|
HTMLOutputIterator& operator = (const HTMLOutputIterator&);
|
|
|
|
RelatedAccIterator mRelIter;
|
|
};
|
|
|
|
|
|
/**
|
|
* Used to iterate through XUL labels associated with the given element.
|
|
*/
|
|
class XULLabelIterator : public AccIterable
|
|
{
|
|
public:
|
|
XULLabelIterator(DocAccessible* aDocument, nsIContent* aElement);
|
|
virtual ~XULLabelIterator() { }
|
|
|
|
/**
|
|
* Return next label accessible associated with the given element.
|
|
*/
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
XULLabelIterator();
|
|
XULLabelIterator(const XULLabelIterator&);
|
|
XULLabelIterator& operator = (const XULLabelIterator&);
|
|
|
|
RelatedAccIterator mRelIter;
|
|
};
|
|
|
|
|
|
/**
|
|
* Used to iterate through XUL descriptions associated with the given element.
|
|
*/
|
|
class XULDescriptionIterator : public AccIterable
|
|
{
|
|
public:
|
|
XULDescriptionIterator(DocAccessible* aDocument, nsIContent* aElement);
|
|
virtual ~XULDescriptionIterator() { }
|
|
|
|
/**
|
|
* Return next description accessible associated with the given element.
|
|
*/
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
XULDescriptionIterator();
|
|
XULDescriptionIterator(const XULDescriptionIterator&);
|
|
XULDescriptionIterator& operator = (const XULDescriptionIterator&);
|
|
|
|
RelatedAccIterator mRelIter;
|
|
};
|
|
|
|
/**
|
|
* Used to iterate through IDs, elements or accessibles pointed by IDRefs
|
|
* attribute. Note, any method used to iterate through IDs, elements, or
|
|
* accessibles moves iterator to next position.
|
|
*/
|
|
class IDRefsIterator : public AccIterable
|
|
{
|
|
public:
|
|
IDRefsIterator(DocAccessible* aDoc, nsIContent* aContent,
|
|
nsIAtom* aIDRefsAttr);
|
|
virtual ~IDRefsIterator() { }
|
|
|
|
/**
|
|
* Return next ID.
|
|
*/
|
|
const nsDependentSubstring NextID();
|
|
|
|
/**
|
|
* Return next element.
|
|
*/
|
|
nsIContent* NextElem();
|
|
|
|
/**
|
|
* Return the element with the given ID.
|
|
*/
|
|
nsIContent* GetElem(const nsDependentSubstring& aID);
|
|
|
|
// AccIterable
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
IDRefsIterator();
|
|
IDRefsIterator(const IDRefsIterator&);
|
|
IDRefsIterator operator = (const IDRefsIterator&);
|
|
|
|
nsString mIDs;
|
|
nsIContent* mContent;
|
|
DocAccessible* mDoc;
|
|
nsAString::index_type mCurrIdx;
|
|
};
|
|
|
|
|
|
/**
|
|
* Iterator that points to a single accessible returning it on the first call
|
|
* to Next().
|
|
*/
|
|
class SingleAccIterator : public AccIterable
|
|
{
|
|
public:
|
|
explicit SingleAccIterator(Accessible* aTarget): mAcc(aTarget) { }
|
|
virtual ~SingleAccIterator() { }
|
|
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
SingleAccIterator();
|
|
SingleAccIterator(const SingleAccIterator&);
|
|
SingleAccIterator& operator = (const SingleAccIterator&);
|
|
|
|
RefPtr<Accessible> mAcc;
|
|
};
|
|
|
|
|
|
/**
|
|
* Used to iterate items of the given item container.
|
|
*/
|
|
class ItemIterator : public AccIterable
|
|
{
|
|
public:
|
|
explicit ItemIterator(Accessible* aItemContainer) :
|
|
mContainer(aItemContainer), mAnchor(nullptr) { }
|
|
virtual ~ItemIterator() { }
|
|
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
ItemIterator() = delete;
|
|
ItemIterator(const ItemIterator&) = delete;
|
|
ItemIterator& operator = (const ItemIterator&) = delete;
|
|
|
|
Accessible* mContainer;
|
|
Accessible* mAnchor;
|
|
};
|
|
|
|
|
|
/**
|
|
* Used to iterate through XUL tree items of the same level.
|
|
*/
|
|
class XULTreeItemIterator : public AccIterable
|
|
{
|
|
public:
|
|
XULTreeItemIterator(XULTreeAccessible* aXULTree, nsITreeView* aTreeView,
|
|
int32_t aRowIdx);
|
|
virtual ~XULTreeItemIterator() { }
|
|
|
|
virtual Accessible* Next() override;
|
|
|
|
private:
|
|
XULTreeItemIterator() = delete;
|
|
XULTreeItemIterator(const XULTreeItemIterator&) = delete;
|
|
XULTreeItemIterator& operator = (const XULTreeItemIterator&) = delete;
|
|
|
|
XULTreeAccessible* mXULTree;
|
|
nsITreeView* mTreeView;
|
|
int32_t mRowCount;
|
|
int32_t mContainerLevel;
|
|
int32_t mCurrRowIdx;
|
|
};
|
|
|
|
} // namespace a11y
|
|
} // namespace mozilla
|
|
|
|
#endif
|