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

Side by Side Diff: Source/core/layout/LayoutInline.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/LayoutImage.cpp ('k') | Source/core/layout/LayoutObject.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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 if (isInlineElementContinuation()) { 1251 if (isInlineElementContinuation()) {
1252 // We're in the continuation of a split inline. Adjust our local po int to be in the coordinate space 1252 // We're in the continuation of a split inline. Adjust our local po int to be in the coordinate space
1253 // of the principal renderer's containing block. This will end up b eing the innerNode. 1253 // of the principal renderer's containing block. This will end up b eing the innerNode.
1254 LayoutBlock* firstBlock = n->layoutObject()->containingBlock(); 1254 LayoutBlock* firstBlock = n->layoutObject()->containingBlock();
1255 1255
1256 // Get our containing block. 1256 // Get our containing block.
1257 LayoutBox* block = containingBlock(); 1257 LayoutBox* block = containingBlock();
1258 localPoint.moveBy(block->location() - firstBlock->locationOffset()); 1258 localPoint.moveBy(block->location() - firstBlock->locationOffset());
1259 } 1259 }
1260 1260
1261 result.setInnerNode(n); 1261 result.setNodeAndPosition(n, localPoint);
1262 result.setLocalPoint(localPoint);
1263 } 1262 }
1264 } 1263 }
1265 1264
1266 void LayoutInline::dirtyLineBoxes(bool fullLayout) 1265 void LayoutInline::dirtyLineBoxes(bool fullLayout)
1267 { 1266 {
1268 if (fullLayout) { 1267 if (fullLayout) {
1269 m_lineBoxes.deleteLineBoxes(); 1268 m_lineBoxes.deleteLineBoxes();
1270 return; 1269 return;
1271 } 1270 }
1272 1271
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 } 1452 }
1454 1453
1455 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer) const 1454 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer) const
1456 { 1455 {
1457 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine r); 1456 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine r);
1458 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) 1457 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox())
1459 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box); 1458 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box);
1460 } 1459 }
1461 1460
1462 } // namespace blink 1461 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutImage.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698