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

Side by Side Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 300223009: Implement basic parts of hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add isClipMode() and check bounding box Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 void AXObjectCache::handleScrollPositionChanged(ScrollView* scrollView) 1011 void AXObjectCache::handleScrollPositionChanged(ScrollView* scrollView)
1012 { 1012 {
1013 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); 1013 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged);
1014 } 1014 }
1015 1015
1016 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) 1016 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject)
1017 { 1017 {
1018 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged) ; 1018 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged) ;
1019 } 1019 }
1020 1020
1021 void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& re ct)
1022 {
1023 AXObject* obj = getOrCreate(element);
1024 if (!obj)
1025 return;
1026
1027 obj->setElementRect(rect);
1028 }
1029
1021 } // namespace WebCore 1030 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698