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

Side by Side Diff: Source/core/layout/LayoutObject.cpp

Issue 1094133004: Image maps should work for images with alt content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 8 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
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutTextControl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 2646
2647 Node* node = this->node(); 2647 Node* node = this->node();
2648 2648
2649 // If we hit the anonymous renderers inside generated content we should 2649 // If we hit the anonymous renderers inside generated content we should
2650 // actually hit the generated content so walk up to the PseudoElement. 2650 // actually hit the generated content so walk up to the PseudoElement.
2651 if (!node && parent() && parent()->isBeforeOrAfterContent()) { 2651 if (!node && parent() && parent()->isBeforeOrAfterContent()) {
2652 for (LayoutObject* renderer = parent(); renderer && !node; renderer = re nderer->parent()) 2652 for (LayoutObject* renderer = parent(); renderer && !node; renderer = re nderer->parent())
2653 node = renderer->node(); 2653 node = renderer->node();
2654 } 2654 }
2655 2655
2656 if (node) { 2656 if (node)
2657 result.setInnerNode(node); 2657 result.setNodeAndPosition(node, point);
2658 result.setLocalPoint(point);
2659 }
2660 } 2658 }
2661 2659
2662 bool LayoutObject::nodeAtPoint(HitTestResult&, const HitTestLocation& /*location InContainer*/, const LayoutPoint& /*accumulatedOffset*/, HitTestAction) 2660 bool LayoutObject::nodeAtPoint(HitTestResult&, const HitTestLocation& /*location InContainer*/, const LayoutPoint& /*accumulatedOffset*/, HitTestAction)
2663 { 2661 {
2664 return false; 2662 return false;
2665 } 2663 }
2666 2664
2667 void LayoutObject::scheduleRelayout() 2665 void LayoutObject::scheduleRelayout()
2668 { 2666 {
2669 if (isLayoutView()) { 2667 if (isLayoutView()) {
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
3284 { 3282 {
3285 if (object1) { 3283 if (object1) {
3286 const blink::LayoutObject* root = object1; 3284 const blink::LayoutObject* root = object1;
3287 while (root->parent()) 3285 while (root->parent())
3288 root = root->parent(); 3286 root = root->parent();
3289 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3287 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3290 } 3288 }
3291 } 3289 }
3292 3290
3293 #endif 3291 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698