| Index: Source/core/testing/LayerRectList.h
|
| diff --git a/Source/core/dom/ClientRectList.h b/Source/core/testing/LayerRectList.h
|
| similarity index 73%
|
| copy from Source/core/dom/ClientRectList.h
|
| copy to Source/core/testing/LayerRectList.h
|
| index 33f54c79aa4688c762f21f9f91a3027150b8a954..9d5ea8f329637348df46c989d653ea1ff7fbe2af 100644
|
| --- a/Source/core/dom/ClientRectList.h
|
| +++ b/Source/core/testing/LayerRectList.h
|
| @@ -20,15 +20,14 @@
|
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| *
|
| */
|
|
|
| -#ifndef ClientRectList_h
|
| -#define ClientRectList_h
|
| +#ifndef LayerRectList_h
|
| +#define LayerRectList_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| -#include "core/platform/graphics/FloatQuad.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/Vector.h"
|
| @@ -36,21 +35,23 @@
|
| namespace WebCore {
|
|
|
| class ClientRect;
|
| +class ClientRectList;
|
| +class LayerRect;
|
| +class Node;
|
|
|
| -class ClientRectList : public RefCounted<ClientRectList>, public ScriptWrappable {
|
| +class LayerRectList : public RefCounted<LayerRectList> {
|
| public:
|
| - static PassRefPtr<ClientRectList> create() { return adoptRef(new ClientRectList); }
|
| - static PassRefPtr<ClientRectList> create(const Vector<FloatQuad>& quads) { return adoptRef(new ClientRectList(quads)); }
|
| - ~ClientRectList();
|
| + static PassRefPtr<LayerRectList> create() { return adoptRef(new LayerRectList); }
|
| + ~LayerRectList();
|
|
|
| unsigned length() const;
|
| - ClientRect* item(unsigned index);
|
| + LayerRect* item(unsigned index);
|
| + void append(PassRefPtr<Node> layerRootNode, PassRefPtr<ClientRect> layerRelativeRect);
|
|
|
| private:
|
| - ClientRectList();
|
| - explicit ClientRectList(const Vector<FloatQuad>&);
|
| + LayerRectList();
|
|
|
| - Vector<RefPtr<ClientRect> > m_list;
|
| + Vector<RefPtr<LayerRect> > m_list;
|
| };
|
|
|
| } // namespace WebCore
|
|
|